Script to restart xaseco with a cronjob if the system is crashed
- Replace the Aseco.sh with the with the original file.
- Put the restart.sh file in the xaseco-directory
- chmod +x Aseco.sh AND chmod +x restart.sh
- Run the restart.sh-file via cronjob with the user, that runs normaly uaseco
*/5 * * * * GameServerUser /home/Path/to/TM/xaseco/ && ./restart.sh
It checks via CronJob every X minutes if the XAseco process is still present. If so, the script does nothing and terminates again. If not, the script restarts XAseco and then terminates.