diff options
Diffstat (limited to 'net-misc/sslh/files/sslh.init.d-2')
-rwxr-xr-x | net-misc/sslh/files/sslh.init.d-2 | 19 |
1 files changed, 19 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..a00b0f26b778 --- /dev/null +++ b/net-misc/sslh/files/sslh.init.d-2 @@ -0,0 +1,19 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/sslh/files/sslh.init.d-2,v 1.1 2012/07/06 18:16:19 kensington Exp $ + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start \ + --exec /usr/bin/sslh -- ${OPTIONS} \ + --pidfile /var/run/sslh.pid + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --quiet --retry 20 \ + --pidfile /var/run/sslh.pid + eend $? +} |