Various privoxy fixes:
[openwrt/svn-archive/archive.git] / net / privoxy / files / privoxy.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3
4 CFG_F=/etc/privoxy/config
5 RUN_D=/var/run
6 PID_F=$RUN_D/privoxy.pid
7
8 start() {
9 mkdir -p $RUN_D
10 /usr/sbin/privoxy --pidfile $PID_F $CFG_F
11 }
12
13 stop() {
14 [ -f $PID_F ] && kill $(cat $PID_F)
15 }