[Linux/L4D2] Managing Server Shutdown Exceptions
Quick backstory: was randomly checking servers earlier today and saw all of them in red (offline mode) so had to manually reboot them. No errors in the logs, and it appears all of them were down simultaneously, which I found odd.
So, is there a script or method that can help me manage this? Meaning, an auto-restart script for when servers suddenly shut down? Thanks! |
Re: [Linux/L4D2] Managing Server Shutdown Exceptions
can do that with a cronjob you can google cronjob check if service is running.
I don't really know how to write scripts for cronjob i just follow tutorial :D http://www.akamaras.com/linux/linux-...f-its-stopped/ |
Re: [Linux/L4D2] Managing Server Shutdown Exceptions
Me neither - I'll have to cook up something and paste it here for someone to check.
|
Re: [Linux/L4D2] Managing Server Shutdown Exceptions
You can use this... https://linuxgsm.com/lgsm/l4d2server/
It works on Linux and you can also manage the control. About the restart, you can configure a cronjob like this: */5 * * * * cd /yourftpaddress/serverfiles ./l4d2server start It will start the server every 5 minutes. If itīs currently running, it does not do anything. |
Re: [Linux/L4D2] Managing Server Shutdown Exceptions
I am looking for a solution that ideally doesn't use dependencies like a game server manager. Any additional info on what the cron job would look like?
1. Query, check if server is offline 2. Restart if necessary. |
| All times are GMT -4. The time now is 02:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.