JTS3ServerMod - TS3 Server Bot init.d script to automatic start JTS3BOT on boot as diferent user.
##Requirements
- debian based OS
- sudoers (
aptitude install sudo
) - nano editor (
sudo apt-get install nano
) - screen (
sudo apt-get install screen
) - downloaded JTS3ServerMod - TS3 Server Bot init.d https://www.stefan1200.de/forum/index.php?topic=2.0
- dir location of mc /opt/ts3bot/
- installed latest java (
sudo apt-get install default-jre
) - user teamspeak3bot (
sudo adduser --disabled-login teamspeak3bot
) - permission for teamspeak3bot user (
sudo chown teamspeak3bot:teamspeak3bot -R /opt/ts3bot
)
##How to build
-
Terminal/Console:
cd /etc/init.d
nano ts3bot
-
paste/rewrite code from ts3bot file ts3bot
-
CTRL+X
-
Y (name:ts3bot)
-
ENTER
-
Terminal/Console:
sudo chmod 755 /etc/init.d/ts3bot
-
Terminal/Console:
sudo update-rc.d ts3bot defaults
-
Terminal/Console:
reboot
##Commands
stop ts3bot : service ts3bot stop
start ts3bot : service ts3bot start
Chceck java version java -version
If you change /etc/init.d/ts3bot file ---> sudo update-rc.d ts3bot defaults
& systemctl daemon-reload
If not work starting try to stop service ts3bot stop
and start again service ts3bot start
!!!