diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-05-26 13:02:00 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-05-26 13:02:00 +0000 |
commit | cdd6e1dfa1cd5e59f95a5dbdf978c7c766eacd26 (patch) | |
tree | 7e1fbdec72a6b0330215e2abe2d26e053e301553 /testing/privoxy/privoxy.initd | |
parent | 5265583427de9887f6a8109c2494d17052b9674c (diff) | |
download | aports-cdd6e1dfa1cd5e59f95a5dbdf978c7c766eacd26.tar.bz2 aports-cdd6e1dfa1cd5e59f95a5dbdf978c7c766eacd26.tar.xz |
testing/privoxy: new aport
A web proxy with advanced filtering capabilities
http://www.privoxy.org
Diffstat (limited to 'testing/privoxy/privoxy.initd')
-rw-r--r-- | testing/privoxy/privoxy.initd | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/privoxy/privoxy.initd b/testing/privoxy/privoxy.initd new file mode 100644 index 0000000000..ef984ea3df --- /dev/null +++ b/testing/privoxy/privoxy.initd @@ -0,0 +1,32 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/privoxy/files/privoxy.initd,v 1.2 2007/11/14 05:14:56 mrness Exp $ + +CONFFILE=/etc/${SVCNAME}/config +PIDFILE=/var/run/${SVCNAME}.pid + +depend() { + need net +} + +start() { + if [ ! -f "${CONFFILE}" ]; then + eerror "Configuration file ${CONFFILE} not found!" + return 1 + fi + + ebegin "Starting privoxy" + start-stop-daemon --start --quiet --exec /usr/sbin/privoxy \ + --pidfile "${PIDFILE}" \ + -- \ + --pidfile "${PIDFILE}" \ + --user privoxy.privoxy "${CONFFILE}" + eend $? +} + +stop() { + ebegin "Stopping privoxy" + start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" + eend $? +} |