From 114c72fda4a6df07cd8a067a8fbafacaa3730c71 Mon Sep 17 00:00:00 2001 From: Roland Rosenfeld Date: Fri, 6 Sep 2002 16:14:30 +0000 Subject: [PATCH] * Use start-stop-daemon for starting privoxy to avoid problems on start, when privoxy is already running (Closes: #154882). --- debian/init.d | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/debian/init.d b/debian/init.d index cca3a8be..012668da 100644 --- a/debian/init.d +++ b/debian/init.d @@ -15,8 +15,10 @@ set -e case "$1" in start) echo -n "Starting $DESC: " - $DAEMON --pidfile $PIDFILE --user $OWNER $CONFIGFILE 2>/dev/null - echo "$NAME." + start-stop-daemon --oknodo --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- --pidfile $PIDFILE --user $OWNER $CONFIGFILE \ + 2>/dev/null + echo "$NAME." ;; stop) echo -n "Stopping $DESC: " @@ -46,7 +48,8 @@ case "$1" in start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \ --exec $DAEMON sleep 1 - $DAEMON --pidfile $PIDFILE --user $OWNER $CONFIGFILE + start-stop-daemon --oknodo --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- --pidfile $PIDFILE --user $OWNER $CONFIGFILE ;; *) N=/etc/init.d/$NAME -- 2.39.2