contrib/privoxy/privoxy
2006-11-13 21:12:21 +01:00

23 lines
310 B
Bash

#!/bin/sh
#
# It's even better if you make a special useraccount for this server.
#
case $1 in
start)
# run privoxy as user nobody.
su - nobody -c '/usr/sbin/privoxy /etc/privoxy/config &'
;;
stop)
pkill -f '/usr/sbin/privoxy'
;;
restart)
$0 stop
sleep 5
$0 start
;;
esac
# End of file