summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-05-13 05:40:55 +0200
committerChristian Pointner <equinox@spreadspace.org>2015-05-13 07:00:24 +0200
commitaf2f2f91ab6750e8f7d36764b83d2eaec7cdfb26 (patch)
treed416e348d3629b2be439c39a85a52f9685bb506f /contrib
parentcleanup after signale fixed (diff)
added systemd service file
Diffstat (limited to 'contrib')
-rw-r--r--contrib/systemd.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/systemd.service b/contrib/systemd.service
new file mode 100644
index 0000000..7bcf48e
--- /dev/null
+++ b/contrib/systemd.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=tcp proxy server
+
+[Service]
+ExecStart=/usr/bin/tcpproxy -u tcpproxy -g tcpproxy -D
+ExecReload=/bin/kill -HUP $MAINPID
+Restart=on-failure
+PrivateTmp=yes
+PrivateDevices=yes
+ProtectSystem=full
+ProtectHome=yes
+
+[Install]
+WantedBy=multi-user.target