From ca9627e70852f6b2e835660df870fe3ab405882d Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 1 Sep 2019 00:00:32 +0200 Subject: Initial import --- net-misc/httptunnel/files/hts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 net-misc/httptunnel/files/hts (limited to 'net-misc/httptunnel/files/hts') diff --git a/net-misc/httptunnel/files/hts b/net-misc/httptunnel/files/hts new file mode 100755 index 0000000..37b902b --- /dev/null +++ b/net-misc/httptunnel/files/hts @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: + +depend() { + need net $HTS_SERVICE +} + +start() { + ebegin "Starting httptunnel (server)" + start-stop-daemon --start --quiet --exec /usr/bin/hts -c nobody -- -S -F $HTS_SERVICE_SERVER:$HTS_SERVICE_PORT $HTS_PORT + eend $? +} + +stop() { + ebegin "Stopping httptunnel (server)" + start-stop-daemon --stop --retry 5 --quiet --name hts + eend $? +} -- cgit v1.2.3