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 \
20 2>> /var/log/privoxy/errorfile
24 echo -n "Stopping $DESC: "
25 start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \
32 # If the daemon can reload its config files on the fly
33 # for example by sending it SIGHUP, do it here.
35 # If the daemon responds to changes in its config file
36 # directly anyway, make this a do-nothing entry.
38 # echo "Reloading $DESC configuration files."
39 # start-stop-daemon --stop --signal 1 --quiet --pidfile \
40 # /var/run/$NAME.pid --exec $DAEMON
44 # If the "reload" option is implemented, move the "force-reload"
45 # option to the "reload" entry above. If not, "force-reload" is
46 # just the same as "restart".
48 echo -n "Restarting $DESC: "
49 start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \
52 start-stop-daemon --oknodo --start --quiet --pidfile $PIDFILE \
53 --exec $DAEMON -- --pidfile $PIDFILE --user $OWNER $CONFIGFILE \
54 2>> /var/log/privoxy/errorfile
59 # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
60 echo "Usage: $N {start|stop|restart|force-reload}" >&2