[Unit]
Description=LinuxGSM Teamspeak3 Server
After=network-online.target
Wants=network-online.target
[Service]
Type=forking
User=ts3server
WorkingDirectory=/home/ts3server
ExecStart=/home/ts3server/ts3server start
ExecStop=/home/ts3server/ts3server stop
Restart=no
RemainAfterExit=yes #Assume that the service is running after main process exits with code 0
[Install]
WantedBy=multi-user.target
sudo systemctl start ts3server # Start the server
sudo systemctl stop ts3server # Stop the server
sudo systemctl enable ts3server # Enable start on boot
sudo systemctl disable ts3server # Disable start on boot