packages/privoxy: use new service functions
Signed-off-by: Peter Wagner <tripolar@gmx.at> git-svn-id: svn://svn.openwrt.org/openwrt/packages@29151 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
58f84dff49
commit
57c6469df4
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=privoxy
|
PKG_NAME:=privoxy
|
||||||
PKG_VERSION:=3.0.17
|
PKG_VERSION:=3.0.17
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-stable-src.tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-stable-src.tar.gz
|
||||||
PKG_SOURCE_URL:=@SF/ijbswa
|
PKG_SOURCE_URL:=@SF/ijbswa
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006-2011 OpenWrt.org
|
||||||
START=50
|
|
||||||
|
|
||||||
CFG_F=/etc/privoxy/config
|
START=50
|
||||||
RUN_D=/var/run
|
STOP=50
|
||||||
PID_F=$RUN_D/privoxy.pid
|
|
||||||
|
SERVICE_USE_PID=1
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
mkdir -p $RUN_D
|
service_start /usr/sbin/privoxy --pidfile /var/run/privoxy.pid \
|
||||||
/usr/sbin/privoxy --pidfile $PID_F $CFG_F
|
/etc/privoxy/config
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
[ -f $PID_F ] && kill $(cat $PID_F)
|
service_stop /usr/sbin/privoxy
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user