diff options
Diffstat (limited to 'main/tcpproxy/tcpproxy.initd')
-rw-r--r-- | main/tcpproxy/tcpproxy.initd | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/main/tcpproxy/tcpproxy.initd b/main/tcpproxy/tcpproxy.initd new file mode 100644 index 000000000..a7fd4292d --- /dev/null +++ b/main/tcpproxy/tcpproxy.initd @@ -0,0 +1,14 @@ +#!/sbin/runscript + +DAEMON=/usr/sbin/tcpproxy +start() { + ebegin "Starting tcpproxy" + start-stop-daemon -S -x $DAEMON -- $TCPPROXY_OPTS + eend $? +} + +stop() { + ebegin "Stopping tcpproxy" + start-stop-daemon -K -x $DAEMON + eend $? +} |