- Apr 23, 2016
- 483
- 249
- 167
Hello,
I found an interesting script to monitor process so I decided to edit it for TS3 server and Acounting server Emulator. (Hope I am first on the forum who made this, coz I didn't find it)
I decided to put it in /var directory. Everything that is bold is command that I entered in bash.
Make sure you have cron installed --> apt-get install cron
nano /var/checker.sh
CODE for the FILE (Don't forget to edit paths and name for Acounting Server Emulator): You save it and do: chmod +x /var/checker.sh
Now you type crontab -e
And Add following line (For checking every minute):
* * * * * /var/checker.sh
Or for every 5 minutes:
*/5 * * * * /var/checker.sh
+ startscript (/etc/init.d/ts3server)You save it and you are done!
BTW: Log of every check will be saved in /var/logs/ASE.txt for Accounting Server Emulator and /var/logs/ts3server.txt for TS3 Server itself
I found an interesting script to monitor process so I decided to edit it for TS3 server and Acounting server Emulator. (Hope I am first on the forum who made this, coz I didn't find it)
I decided to put it in /var directory. Everything that is bold is command that I entered in bash.
Make sure you have cron installed --> apt-get install cron
nano /var/checker.sh
CODE for the FILE (Don't forget to edit paths and name for Acounting Server Emulator): You save it and do: chmod +x /var/checker.sh
Now you type crontab -e
And Add following line (For checking every minute):
* * * * * /var/checker.sh
Or for every 5 minutes:
*/5 * * * * /var/checker.sh
+ startscript (/etc/init.d/ts3server)You save it and you are done!
BTW: Log of every check will be saved in /var/logs/ASE.txt for Accounting Server Emulator and /var/logs/ts3server.txt for TS3 Server itself
Last edited: