Ubuntu: Monitor program for if it crashes to restart

Viewed 13

I'm very new to Linux and I'm trying to figure out how I can monitor something and restart if it crashes. I have a gameserver that I am hosting on a Linux dedicated server. I have command "./qlserver start" to start the game server or I can do "./qlserver stop, restart and other functions". Sometims the game server (not the host server) crashes and I have to manually ./qlserver start to start it back up. Is their a way I can monitor if it crashes and restart automatically? The ./qlserver start leads to a file named run_server_x64_minqlx.sh and inside that it executes ./qzeroded.x64 When I run btop it shows the program qzerored.x64. Thabks for any help

0 Answers
Related