mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-10-31 10:27:22 +00:00 
			
		
		
		
	kill nc process
This commit is contained in:
		
							parent
							
								
									6fc1447fa6
								
							
						
					
					
						commit
						dca09dedac
					
				
							
								
								
									
										9
									
								
								le.sh
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								le.sh
									
									
									
									
									
								
							| @ -658,11 +658,16 @@ _stopserver(){ | |||||||
|     return |     return | ||||||
|   fi |   fi | ||||||
|    |    | ||||||
|   if [[ "$(ps | grep "$pid" | grep "nc")" ]] ; then |   if [[ "$(ps | grep "$pid")" ]] ; then | ||||||
|     _debug "Found nc process, kill it." |     _debug "Found proc process, kill it." | ||||||
|     kill -s 9 $pid > /dev/null 2>&1 |     kill -s 9 $pid > /dev/null 2>&1 | ||||||
|   fi |   fi | ||||||
|    |    | ||||||
|  |   for ncid in $(ps | grep nc | cut -d " " -f 1) ; do | ||||||
|  |     _debug "kill $ncid" | ||||||
|  |     kill -s 9 $ncid > /dev/null 2>&1 | ||||||
|  |   done | ||||||
|  |    | ||||||
|   _get "http://localhost:$Le_HTTPPort" >/dev/null 2>$1 |   _get "http://localhost:$Le_HTTPPort" >/dev/null 2>$1 | ||||||
| 
 | 
 | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user