Assuming you have downloaded and unzipped the latest version of the program in folder /opt/ts3
- Create a user for the application and disable logging
Ubuntu
adduser --disabled-login
Fedora
adduser -r teamspeak
- Put the user teamspeak as the owner of the folder
chown -R teamspeak /opt/ts3
- Download the script below in the folder
Ubuntu
wget -P /etc/init.d/ https://gist.github.com/wesllei/3013253/raw/93d958ecf5f7f2b4ebe46cd21f1e3203a1e30b63/teamspeak
Fedora
wget -P /usr/local/bin/ https://gist.github.com/wesllei/3013253/raw/93d958ecf5f7f2b4ebe46cd21f1e3203a1e30b63/teamspeak
wget -P /lib/systemd/system/ https://gist.github.com/wesllei/3013253/raw/ee67e523801f84f7f2588df31c2aa4a93feccdf6/teamspeak.service
- Change the file permissions
Ubuntu
chmod 755 /etc/init.d/teamspeak
Fedora
chmod 755 /usr/local/bin/teamspeak
- And enable the service
Ubuntu
update-rc.d teamspeak defaults
Fedora Make symbolic link
ln -s /lib/systemd/system/teamspeak.service /etc/systemd/system/
Make systemd take notice of it
systemctl daemon-reload
Activate a service immediately
systemctl start teamspeak.service
Enable a service to be started on bootup
systemctl enable teamspeak.service
It should be noted that the user name is weslleih, not wesllei anymore. So, instead the links would be:
wget -P /etc/init.d/ https://gist.github.com/weslleih/3013253/raw/93d958ecf5f7f2b4ebe46cd21f1e3203a1e30b63/teamspeak
and
wget -P /usr/local/bin/ https://gist.github.com/weslleih/3013253/raw/93d958ecf5f7f2b4ebe46cd21f1e3203a1e30b63/teamspeak
wget -P /lib/systemd/system/ https://gist.github.com/weslleih/3013253/raw/ee67e523801f84f7f2588df31c2aa4a93feccdf6/teamspeak.service