summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2012-07-06 18:16:19 +0000
committerMichael Palimaka <kensington@gentoo.org>2012-07-06 18:16:19 +0000
commit6e977c5a61a7be8940364104864a0cbd46f6e98e (patch)
tree8533f7cb6e54f33e9505b6f3e9b2878348e9e712 /net-misc/sslh/files
parentChange license to GPLv3 #425072 by Nanouck. (diff)
downloadhistorical-6e977c5a61a7be8940364104864a0cbd46f6e98e.tar.gz
historical-6e977c5a61a7be8940364104864a0cbd46f6e98e.tar.bz2
historical-6e977c5a61a7be8940364104864a0cbd46f6e98e.zip
Version bump wrt bug #424685. Take over maintainership of package.
Package-Manager: portage-2.1.11.5/cvs/Linux x86_64
Diffstat (limited to 'net-misc/sslh/files')
-rw-r--r--net-misc/sslh/files/sslh.conf.d-28
-rwxr-xr-xnet-misc/sslh/files/sslh.init.d-219
2 files changed, 27 insertions, 0 deletions
diff --git a/net-misc/sslh/files/sslh.conf.d-2 b/net-misc/sslh/files/sslh.conf.d-2
new file mode 100644
index 000000000000..719be7b8dd15
--- /dev/null
+++ b/net-misc/sslh/files/sslh.conf.d-2
@@ -0,0 +1,8 @@
+# /etc/conf.d/sslh
+
+# Options to sslh itself. See the sslh(1) man page.
+#OPTIONS=""
+
+# Multiplexing example
+# Port 44 can be used for ssh, http, and https. Drop privileges after starting.
+#OPTIONS="-p localhost:44 --ssh 127.0.0.1:22 --http 127.0.0.1:80 --ssl 127.0.0.1:443 --user nobody"
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 $?
+}