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