Last updated
Last updated
systemd is the default init system for most modern distros.
You need to create a service file in /etc/systemd/system/
Example ts3server.service
Replace the user and paths to fit your setup.
You need to reload the systemd-daemon once to make it aware of the new service file by systemctl daemon-reload
Now you can do
Most admins will also have a timed monitor cronjob configured. If you do not want to have extra cronjobs the timed monitor will also start a server but with a timed delay.
monitor
commandAfter a reboot, any game server that has a "started" status will be started on boot. Servers that were manually stopped will remain stopped.
start
commandStart a game server unconditionally, even if you manually stop a server.
rc.local
rc.local is another method to run scripts on boot. Any commands added to the rc.local file will run on boot.
The crontab will allow you to create that allow you to run a command on a set time or on boot. The below example uses @reboot
that will run a command on boot.
To learn more, see and .
To learn more, see