summaryrefslogtreecommitdiffstats
path: root/net-misc/httptunnel/files/hts
blob: 37b902b4940e613ad55c387af1812a597503b471 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 $?
}