summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/tuntox.conf14
-rw-r--r--scripts/tuntox.service20
2 files changed, 34 insertions, 0 deletions
diff --git a/scripts/tuntox.conf b/scripts/tuntox.conf
new file mode 100644
index 0000000..eb26587
--- /dev/null
+++ b/scripts/tuntox.conf
@@ -0,0 +1,14 @@
1; supervisord config file
2;
3; Copy the tuntox binary to /usr/bin/ before using this file
4
5[program:tuntox]
6command = /usr/bin/tuntox
7autostart = true
8startsecs = 20
9
10; change user here
11user = proxy
12
13redirect_stderr = true
14stdout_logfile = /var/log/tuntox.log
diff --git a/scripts/tuntox.service b/scripts/tuntox.service
new file mode 100644
index 0000000..e4fc3d3
--- /dev/null
+++ b/scripts/tuntox.service
@@ -0,0 +1,20 @@
1[Unit]
2Description=Tuntox - TCP tunnel over Tox protocol
3After=network.target
4
5[Service]
6Type=simple
7
8# Copy the tuntox binary to /usr/bin first
9
10ExecStart=/usr/bin/tuntox
11Restart=on-failure
12
13# Change this to your user and group for increased security
14# Make sure this user/group has access to /etc/tuntox
15#User=proxy
16#Group=proxy
17
18[Install]
19WantedBy=multi-user.target
20Alias=tuntox.service