Hi,
I’m having an autostart problem on my Ts server after a server reboot or crash.
My server works normally, but when the server crashes or needs to be restarted I have to manually type the command “./ts3server_startscript.sh start” .
I tried two different methods.
-
crontab -e
@reboot cd /home/yourteamspeakdirectory && ./ts3server_startscript.sh start -
nano /lib/systemd/system/ts3server.service
[Unit]
Description=Teamspeak Service
Wants=network.target
[Service]
WorkingDirectory=/home/teamspeak
User=teamspeak
ExecStart=/home/teamspeak/ts3server_minimal_runscript.sh
ExecStop=/home/teamspeak/ts3server_startscript.sh stop
ExecReload=/home/teamspeak/ts3server_startscript.sh restart
Restart=always
RestartSec=15
[Install]
WantedBy=multi-user.target
For both methods when I do reboot the server will not start automatically
I’m probably doing something wrong, I need help.
Thanks in advance.