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