use kill instead of killall
This commit is contained in:
		
							parent
							
								
									1198902d3c
								
							
						
					
					
						commit
						be6677c807
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								debian/init.d
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								debian/init.d
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -48,7 +48,7 @@ case "$1" in
 | 
			
		|||
	echo -n "Restarting $DESC: "
 | 
			
		||||
	start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
 | 
			
		||||
		--exec $DAEMON
 | 
			
		||||
	killall -9 $NAME
 | 
			
		||||
	ps aux | grep $NAME | awk '{ print $2 }' | xargs kill -9
 | 
			
		||||
	sleep 1
 | 
			
		||||
	start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
 | 
			
		||||
		--exec $DAEMON -- $DAEMON_OPTS
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue