summarylogtreecommitdiffstats
path: root/tshock@.service
blob: 593991fd45725e7274bc189fe872460f7fe01bb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[Unit]
Description=TShock Terraria server

[Service]
Type=oneshot
RemainAfterExit=true
User=terraria
Group=terraria
ExecStart=/usr/bin/tshock start %i
ExecStop=/usr/bin/tshock stop %i

# `TerrariaServer.exe` always writes log files in the working folder
WorkingDirectory=/var/lib/tshock

[Install]
WantedBy=multi-user.target