aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/tcpproxy/tcpproxy.initd
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/tcpproxy/tcpproxy.initd')
-rw-r--r--unmaintained/tcpproxy/tcpproxy.initd14
1 files changed, 14 insertions, 0 deletions
diff --git a/unmaintained/tcpproxy/tcpproxy.initd b/unmaintained/tcpproxy/tcpproxy.initd
new file mode 100644
index 0000000000..b3101c61dc
--- /dev/null
+++ b/unmaintained/tcpproxy/tcpproxy.initd
@@ -0,0 +1,14 @@
+#!/sbin/openrc-run
+
+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 $?
+}