Signed-off-by: Peter Wagner <tripo...@gmx.at>
diff --git a/net/privoxy/files/privoxy.init b/net/privoxy/files/privoxy.init
index 85479b3..0afe4c4 100644
--- a/net/privoxy/files/privoxy.init
+++ b/net/privoxy/files/privoxy.init
@@ -1,16 +1,16 @@
 #!/bin/sh /etc/rc.common
-# Copyright (C) 2006 OpenWrt.org
+# Copyright (C) 2006-2011 OpenWrt.org
+
 START=50
+STOP=50
 
-CFG_F=/etc/privoxy/config
-RUN_D=/var/run
-PID_F=$RUN_D/privoxy.pid
+SERVICE_USE_PID=1
 
 start() {
-	mkdir -p $RUN_D
-	/usr/sbin/privoxy --pidfile $PID_F $CFG_F
+	service_start /usr/sbin/privoxy --pidfile /var/run/privoxy.pid \
+					/etc/privoxy/config
 }
 
 stop() {
-	[ -f $PID_F ] && kill $(cat $PID_F)
+	service_stop /usr/sbin/privoxy
 }
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to