Hello. How do I make TS3 start on reboot?
Add in /etc/rc.local
/opt/ts3/teamspeak3-server_linux-amd64/ts3serverautorestart.sh
Which ts3serverautorestart.sh contains:
#!/bin/bash
nohup /opt/ts3/teamspeak3-server_linux-amd64/ts3server_startscript.sh start
Honestly, you probably could just remove the entire need for a script and just run that one line of code as rc.local. However, I just kinda felt like doing it that way.
Wow I'm weird
Add in /etc/rc.local
/opt/ts3/teamspeak3-server_linux-amd64/ts3serverautorestart.sh
Which ts3serverautorestart.sh contains:
#!/bin/bash
nohup /opt/ts3/teamspeak3-server_linux-amd64/ts3server_startscript.sh start
Honestly, you probably could just remove the entire need for a script and just run that one line of code as rc.local. However, I just kinda felt like doing it that way.
Wow I'm weird
teamspeak_enable="YES"
rc.local is deprecated on many distros that use systemd (and/or not enabled by default) so if you want to use it on RHEL7/CentOS7/Arch/etc. you may need to enable the rc-local service first so it will execute the rc.local commands. If you're using rc.local remember to put "exit 0" after your list of commands in the rc.local file.
My preference is to do what AlbaHost suggested:
crontab -e
and add:
@reboot /opt/ts3/teamspeak3-server_linux-amd64/ts3server_startscript.sh start
If you're using FreeBSD, just add the following to /etc/rc.conf
teamspeak_enable="YES"
So I just run the first command?