diff options
Diffstat (limited to 'www-proxy/tinyproxy/files/tinyproxy.rc')
-rw-r--r-- | www-proxy/tinyproxy/files/tinyproxy.rc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/www-proxy/tinyproxy/files/tinyproxy.rc b/www-proxy/tinyproxy/files/tinyproxy.rc new file mode 100644 index 000000000000..fc40cce2ea00 --- /dev/null +++ b/www-proxy/tinyproxy/files/tinyproxy.rc @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-proxy/tinyproxy/files/tinyproxy.rc,v 1.1 2004/08/15 19:09:23 stuart Exp $ + +depend() { + use logger dns + need net +} + +start() { + ebegin "Starting tinyproxy" + /usr/sbin/tinyproxy + eend $? +} + +stop() { + local pid=0 + if [ -f /var/run/tinyproxy.pid ] ; then + pid=$(</var/run/tinyproxy.pid) + rm /var/run/tinyproxy.pid + fi + ebegin "Stopping tinyproxy" + [ ${pid} -ne 0 ] && kill ${pid} + eend $? +} |