Skip to content

Instantly share code, notes, and snippets.

@ozen
Created April 29, 2017 23:46
Show Gist options
  • Save ozen/d8858538a13762960513041a92eb41ef to your computer and use it in GitHub Desktop.
Save ozen/d8858538a13762960513041a92eb41ef to your computer and use it in GitHub Desktop.
# put in /etc/systemd/system directory
[Unit]
Description=TeamSpeak 3 Server
After=network.target
[Service]
WorkingDirectory=/opt/teamspeak3
User=yigit
Group=yigit
Type=forking
ExecStart=/opt/teamspeak3/ts3server_startscript.sh start inifile=ts3server.ini
ExecStop=/opt/teamspeak3/ts3server_startscript.sh stop
PIDFile=/opt/teamspeak3/ts3server.pid
RestartSec=15
Restart=always
[Install]
WantedBy=multi-user.target
Alias=ts3server.services
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment