2006-11-29 13:29:23 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
2007-05-10 10:38:53 +00:00
|
|
|
START=50
|
2007-03-26 04:23:10 +00:00
|
|
|
|
|
|
|
CFG_F=/etc/privoxy/config
|
|
|
|
RUN_D=/var/run
|
|
|
|
PID_F=$RUN_D/privoxy.pid
|
2006-11-29 13:29:23 +00:00
|
|
|
|
|
|
|
start() {
|
2007-03-26 04:23:10 +00:00
|
|
|
mkdir -p $RUN_D
|
|
|
|
/usr/sbin/privoxy --pidfile $PID_F $CFG_F
|
2006-11-29 13:29:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
2007-03-26 04:23:10 +00:00
|
|
|
[ -f $PID_F ] && kill $(cat $PID_F)
|
2006-11-29 13:29:23 +00:00
|
|
|
}
|