diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-03-05 17:27:47 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-03-05 17:27:47 +0000 |
commit | 5116eaf99a93ccb93b1b46dd023d89b364a92c1b (patch) | |
tree | b51fcc74d622e6d8f6e7a8e95d6504ad64a2400a /net-misc/sslh/files | |
parent | Version bump. (diff) | |
download | gentoo-2-5116eaf99a93ccb93b1b46dd023d89b364a92c1b.tar.gz gentoo-2-5116eaf99a93ccb93b1b46dd023d89b364a92c1b.tar.bz2 gentoo-2-5116eaf99a93ccb93b1b46dd023d89b364a92c1b.zip |
Initial ebuild by Jiri Tyr #251296 and cleaned up by me.
(Portage version: 2.2_rc65/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/sslh/files')
-rw-r--r-- | net-misc/sslh/files/sslh.conf.d | 4 | ||||
-rwxr-xr-x | net-misc/sslh/files/sslh.init.d | 18 |
2 files changed, 22 insertions, 0 deletions
diff --git a/net-misc/sslh/files/sslh.conf.d b/net-misc/sslh/files/sslh.conf.d new file mode 100644 index 000000000000..95792bd4062e --- /dev/null +++ b/net-misc/sslh/files/sslh.conf.d @@ -0,0 +1,4 @@ +# /etc/conf.d/sslh + +# Options to sslh itself. See the sslh(1) man page. +#OPTIONS="-p someip:443" diff --git a/net-misc/sslh/files/sslh.init.d b/net-misc/sslh/files/sslh.init.d new file mode 100755 index 000000000000..f59d80ff6458 --- /dev/null +++ b/net-misc/sslh/files/sslh.init.d @@ -0,0 +1,18 @@ +#!/sbin/runscript +# Copyright 1999-2010 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,v 1.1 2010/03/05 17:27:40 vapier Exp $ + +start() { + ebegin "Starting sslh" + start-stop-daemon --start \ + --exec /usr/bin/sslh -- ${OPTIONS} + eend $? +} + +stop() { + ebegin "Stopping sslh" + start-stop-daemon --stop --quiet --retry 20 \ + --pidfile /var/run/sslh.pid + eend $? +} |