summaryrefslogtreecommitdiff
path: root/scripts/tuntox.service
blob: 6027fa91049943503538242a8b1087f3524ad2e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Systemd service file 

[Unit]
Description=Tuntox - TCP tunnel over Tox protocol
After=network.target

[Service]
Type=simple

# Copy the tuntox binary to /usr/bin first

ExecStart=/usr/bin/tuntox
Restart=on-failure

# Change this to your user and group for increased security
# Make sure this user/group has access to /etc/tuntox
#User=proxy
#Group=proxy

# Uncomment this and add a password to enable authentication
#Environment=TUNTOX_SHARED_SECRET=yourpassword

# Makes / read-only
ProtectSystem=strict
# … except for /etc/tuntox. Modify this if you change the default directory,
# comment it out if you want to generate a new id on each start.
# Remember that /etc/tuntox still needs to be writable by User!
ReadWriteDirectories=/etc/tuntox

[Install]
WantedBy=multi-user.target
Alias=tuntox.service