diff options
Diffstat (limited to 'net-misc/sslh/files/sslh.init.d-2')
-rwxr-xr-x | net-misc/sslh/files/sslh.init.d-2 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/net-misc/sslh/files/sslh.init.d-2 b/net-misc/sslh/files/sslh.init.d-2 new file mode 100755 index 000000000000..bda8c32e87de --- /dev/null +++ b/net-misc/sslh/files/sslh.init.d-2 @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start \ + --pidfile /var/run/${SVCNAME}.pid \ + --exec /usr/sbin/sslh -- \ + ${OPTIONS} \ + --pidfile /var/run/${SVCNAME}.pid + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --quiet --retry 20 \ + --pidfile /var/run/${SVCNAME}.pid + eend $? +} |