Skip to content

Script to restart uaseco with a cronjob if the system is crashed

Notifications You must be signed in to change notification settings

Hoerli1337/uaseco-restartscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

uaseco-restartscript

Script to restart uaseco with a cronjob if the system is crashed

  1. Replace the uaseco.sh with the with the original file.
  2. Put the restart.sh file in the uaseco-directory
  3. chmod +x uaseco.sh AND chmod +x restart.sh
  4. Run the restart.sh-file via cronjob with the user, that runs normaly uaseco

*/5 * * * * GameServerUser /home/Path/to/TM2/uaseco/ && ./restart.sh

WARNING: webrequest.sh must be started manually!

Why?

Several uaseco systems can run on one server. In this case webrequest.sh only needs to be started once. If only one uaseco is running on a server, you can simply activate the line for webrequest in the script.

What does the script do?

It checks via CronJob every X minutes if the uaseco process is still present. If so, the script does nothing and terminates again. If not, the script restarts uaseco and then terminates.

Need the script for XAseco?

https://github.com/Hoerli1337/xaseco-restartscript

About

Script to restart uaseco with a cronjob if the system is crashed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages