3 PATH=/sbin:/bin:/usr/sbin:/usr/bin
4 DAEMON=/usr/sbin/privoxy
6 DESC="filtering proxy server"
8 CONFIGFILE=/etc/privoxy/config
9 PIDFILE=/var/run/$NAME.pid
11 test -f $DAEMON || exit 0
17 echo -n "Starting $DESC: "
18 start-stop-daemon --oknodo --start --quiet --pidfile $PIDFILE \
19 --exec $DAEMON -- --pidfile $PIDFILE --user $OWNER $CONFIGFILE \
24 echo -n "Stopping $DESC: "
25 start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \
31 # If the daemon can reload its config files on the fly
32 # for example by sending it SIGHUP, do it here.
34 # If the daemon responds to changes in its config file
35 # directly anyway, make this a do-nothing entry.
37 # echo "Reloading $DESC configuration files."
38 # start-stop-daemon --stop --signal 1 --quiet --pidfile \
39 # /var/run/$NAME.pid --exec $DAEMON
43 # If the "reload" option is implemented, move the "force-reload"
44 # option to the "reload" entry above. If not, "force-reload" is
45 # just the same as "restart".
47 echo "Restarting $DESC: "
48 start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \
51 start-stop-daemon --oknodo --start --quiet --pidfile $PIDFILE \
52 --exec $DAEMON -- --pidfile $PIDFILE --user $OWNER $CONFIGFILE
56 # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
57 echo "Usage: $N {start|stop|restart|force-reload}" >&2