diff options
Diffstat (limited to 'contrib/systemd.service')
-rw-r--r-- | contrib/systemd.service | 14 |
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 |