Automatiser le démarrage du serveur Teamspeak sur Ubuntu 16.04 & 18.04 LTS

Depuis le passage ubuntu 14.04 => 16.04 le script de démarrage de teamspeak ne fonctionne plus. Voici une méthode pour solutionner le problème.

  • Edit 13/10/2019 fonctionne également sur Ubuntu Server 18.04

Création du fichier service:

Via SSH ou FTP, rendez-vous dans /lib/systemd/system/ et créer un fichier nommé « teamspeak.service » puis coller à l’intérieur:

[Unit]
Description=TeamSpeak 3 Server
After=network.target

[Service]
WorkingDirectory=/opt/teamspeak/
User=teamspeak
Group=teamspeak
Type=forking
ExecStart=/opt/teamspeak/ts3server_startscript.sh start inifile=ts3server.ini
ExecStop=/opt/teamspeak/ts3server_startscript.sh stop
PIDFile=/opt/teamspeak/ts3server.pid
RestartSec=15
Restart=always

[Install]
WantedBy=multi-user.target

Activation du service:

systemctl --system daemon-reload
systemctl enable teamspeak.service

Contrôle du service:

systemctl start teamspeak.service

Si tout est bon:

reboot

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *