From abdd1593f888701a0adef461b1896f73671f0f4e Mon Sep 17 00:00:00 2001 From: Christian Schoenebeck Date: Sun, 8 Feb 2015 16:50:16 +0100 Subject: privoxy: modified init scripts remove "killall" from initscript because it kills itself #867 Signed-off-by: Christian Schoenebeck --- net/privoxy/files/privoxy.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net/privoxy/files') diff --git a/net/privoxy/files/privoxy.init b/net/privoxy/files/privoxy.init index 8ffc6f2c8..9b4f3a327 100644 --- a/net/privoxy/files/privoxy.init +++ b/net/privoxy/files/privoxy.init @@ -108,11 +108,11 @@ stop() { local _PID=$(cat $PIDFILE 2>/dev/null) kill -15 $_PID 2>/dev/null sleep 1 # give time to shutdown - local _tmp=$(pgrep privoxy) + local _tmp=$(pgrep privoxy | tr "\n" " ") if [ -z "$_tmp" ]; then logger -p daemon.notice -t "privoxy[$_PID]" "Shutdown successfully" else - killall -9 privoxy + kill -9 $_tmp # Normally never come here logger -p daemon.warn -t "privoxy[-----]" "Shutdown forced by KILL" fi return 0 -- cgit v1.2.3