diff options
author | GDR! <gdr@go2.pl> | 2014-12-11 21:33:54 +0100 |
---|---|---|
committer | GDR! <gdr@go2.pl> | 2014-12-11 21:33:54 +0100 |
commit | ea3d59d854108f28c2d2d10a5af60fe3d66e1f6f (patch) | |
tree | 6e826c3dcecc76930519a7a75b1436a7198a5db7 | |
parent | d81429c916e41958483256556dea861cb97487c4 (diff) |
Added systemd and supervisord config files
-rw-r--r-- | scripts/tuntox.conf | 14 | ||||
-rw-r--r-- | scripts/tuntox.service | 20 |
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] | ||
6 | command = /usr/bin/tuntox | ||
7 | autostart = true | ||
8 | startsecs = 20 | ||
9 | |||
10 | ; change user here | ||
11 | user = proxy | ||
12 | |||
13 | redirect_stderr = true | ||
14 | stdout_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] | ||
2 | Description=Tuntox - TCP tunnel over Tox protocol | ||
3 | After=network.target | ||
4 | |||
5 | [Service] | ||
6 | Type=simple | ||
7 | |||
8 | # Copy the tuntox binary to /usr/bin first | ||
9 | |||
10 | ExecStart=/usr/bin/tuntox | ||
11 | Restart=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] | ||
19 | WantedBy=multi-user.target | ||
20 | Alias=tuntox.service | ||