diff options
Diffstat (limited to 'app-misc/proxyper/files/proxyper.init')
-rw-r--r-- | app-misc/proxyper/files/proxyper.init | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app-misc/proxyper/files/proxyper.init b/app-misc/proxyper/files/proxyper.init new file mode 100644 index 000000000000..43761eb5bb98 --- /dev/null +++ b/app-misc/proxyper/files/proxyper.init @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header :$ + +depend() { + need net +} + +start() { + ebegin "Starting distributed.net personal proxy" + start-stop-daemon --start --quiet --pidfile /opt/proxyper/rc5desproxy.pid --exec /opt/proxyper/proxyper -- -detach + eend $? +} + +stop() { + ebegin "Stopping distributed.net personal proxy" + start-stop-daemon --stop --quiet --pidfile /opt/proxyper/rc5desproxy.pid + eend $? +} |