diff options
| author | Christian Schoenebeck <christian.schoenebeck@gmail.com> | 2015-02-08 16:50:16 +0100 |
|---|---|---|
| committer | Christian Schoenebeck <christian.schoenebeck@gmail.com> | 2015-02-08 16:50:16 +0100 |
| commit | abdd1593f888701a0adef461b1896f73671f0f4e (patch) | |
| tree | e223b3453eba87803027eedb1c31bee9d92e9cec /net/privoxy | |
| parent | afaf425278b212bbcb6af140ca3e392a529cc0e5 (diff) | |
privoxy: modified init scripts
remove "killall" from initscript because it kills itself #867
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Diffstat (limited to 'net/privoxy')
| -rw-r--r-- | net/privoxy/Makefile | 2 | ||||
| -rw-r--r-- | net/privoxy/files/privoxy.init | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/net/privoxy/Makefile b/net/privoxy/Makefile index a693802a9..c7c0564a9 100644 --- a/net/privoxy/Makefile +++ b/net/privoxy/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=privoxy PKG_VERSION:=3.0.23 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-stable-src.tar.gz PKG_SOURCE_URL:=@SF/ijbswa 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 |
