Skip to content

Instantly share code, notes, and snippets.

@sindastra
Created April 26, 2020 00:17
Show Gist options
  • Save sindastra/52237f1fc9969cd12689cd8a943fedd9 to your computer and use it in GitHub Desktop.
Save sindastra/52237f1fc9969cd12689cd8a943fedd9 to your computer and use it in GitHub Desktop.
TeamSpeak3 systemd service file tested with TeamSpeak version 3.12.1
[Unit]
Description=TeamSpeak3 Server
Wants=network-online.target
After=syslog.target network.target local-fs.target
[Service]
WorkingDirectory=/home/ts3server/teamspeak3-server_linux_amd64
User=ts3server
Group=ts3server
Type=forking
ExecStart=/home/ts3server/teamspeak3-server_linux_amd64/ts3server_startscript.sh start license_accepted=1
ExecStop=/home/ts3server/teamspeak3-server_linux_amd64/ts3server_startscript.sh stop
PIDFile=/home/ts3server/teamspeak3-server_linux_amd64/ts3server.pid
Restart=always
[Install]
WantedBy=multi-user.target
@Rohlik
Copy link

Rohlik commented Oct 22, 2022

Isn't Type=simple better solution? This way systemd monitors the process and you also get the stdout output from the teamspeak server in the journalctl output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment