Page 1 of 1

Restart over Console

Posted: Fri Jul 17, 2015 4:50 pm
by Shadow86
Hello,

with the new update,we added a Console-Feature

from now on you can shutdown the musicbot from the Linux-Console

here is an Example how it can be look like:

Shutdown + Restart
Code: Select all
#!/bin/sh

screen -S bot1 -X stuff 'stop\n'

screen -S bot2 -X stuff 'stop\n'

screen -S bot3 -X stuff 'stop\n'

sleep 3

cd /Path/to your/Folder

echo "start bot1"
screen -dmS bot1 ./TS3MusicBot_runscript.sh -account E-mail -port 5000 -webif-pw ADMIN_PASSWORD -webif-pw-user USER_PASSWORD -number 1

sleep 12

echo "start bot2"

screen -dmS bot2 ./TS3MusicBot_runscript.sh -account E-mail -port 5010 -webif-pw ADMIN_PASSWORD -webif-pw-user USER_PASSWORD -number 2

sleep 12

echo "start bot3"

screen -dmS bot3 ./TS3MusicBot_runscript.sh -account E-mail -port 5020 -webif-pw ADMIN_PASSWORD -webif-pw-user USER_PASSWORD -number 3
You can make a restart.sh and put it in a Crontab, so that the script gets automatically runned from the system:

Code: Select all
crontab -e
Run on a specific time (Hours):
Code: Select all
0 0,12,17 * * * /path/to/your/restart.sh
Run every 12 hours :
Code: Select all
* */12 * * * /path/to/your/restart.sh
*Tested on Debian 7 and 8 - 64bit*

regards

Shadow86

Re: Restart over Console

Posted: Fri Mar 10, 2017 9:19 pm
by jjustmee22
hello by me he start 1 bot not 2 do you now wat is the problem