summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Savchenko <bircoph@gentoo.org>2016-04-26 07:28:03 +0300
committerAndrew Savchenko <bircoph@gentoo.org>2016-04-26 07:28:03 +0300
commite24cfec67aac1a94a06d29ab6c68eb73ca73850a (patch)
tree3723fe130e1d07963877b9f361e9be5a63f6586a /net-proxy/privoxy/files
parentnet-proxy/polipo: unloosing net dependency (diff)
downloadgentoo-e24cfec67aac1a94a06d29ab6c68eb73ca73850a.tar.gz
gentoo-e24cfec67aac1a94a06d29ab6c68eb73ca73850a.tar.bz2
gentoo-e24cfec67aac1a94a06d29ab6c68eb73ca73850a.zip
net-proxy/privoxy: unloosing net dependency
use net is sufficient and required in some use cases Package-Manager: portage-2.2.28 Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
Diffstat (limited to 'net-proxy/privoxy/files')
-rw-r--r--net-proxy/privoxy/files/privoxy.initd-329
1 files changed, 29 insertions, 0 deletions
diff --git a/net-proxy/privoxy/files/privoxy.initd-3 b/net-proxy/privoxy/files/privoxy.initd-3
new file mode 100644
index 000000000000..b71b69ddc3d1
--- /dev/null
+++ b/net-proxy/privoxy/files/privoxy.initd-3
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+CONFFILE=/etc/${SVCNAME}/config
+PIDFILE=/var/run/${SVCNAME}.pid
+
+depend() {
+ use net
+}
+
+start() {
+ if [ ! -f "${CONFFILE}" ]; then
+ eerror "Configuration file ${CONFFILE} not found!"
+ return 1
+ fi
+
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --quiet --exec /usr/sbin/privoxy --pidfile "${PIDFILE}" \
+ -- --pidfile "${PIDFILE}" --user privoxy.privoxy "${CONFFILE}" #2>/dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --quiet --pidfile "${PIDFILE}"
+ eend $?
+}