Raised This Month: $51 Target: $400
 12% 

[Linux/L4D2] Managing Server Shutdown Exceptions


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mr. Man
Veteran Member
Join Date: Mar 2011
Location: Huh?
Old 07-27-2018 , 19:36   [Linux/L4D2] Managing Server Shutdown Exceptions
Reply With Quote #1

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!
Mr. Man is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 07-27-2018 , 19:40   Re: [Linux/L4D2] Managing Server Shutdown Exceptions
Reply With Quote #2

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
http://www.akamaras.com/linux/linux-...f-its-stopped/
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux is offline
Mr. Man
Veteran Member
Join Date: Mar 2011
Location: Huh?
Old 07-27-2018 , 19:44   Re: [Linux/L4D2] Managing Server Shutdown Exceptions
Reply With Quote #3

Me neither - I'll have to cook up something and paste it here for someone to check.
Mr. Man is offline
Natan
BANNED
Join Date: Aug 2015
Location: Usa
Old 07-27-2018 , 23:35   Re: [Linux/L4D2] Managing Server Shutdown Exceptions
Reply With Quote #4

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.

Last edited by Natan; 07-27-2018 at 23:35.
Natan is offline
Send a message via ICQ to Natan Send a message via AIM to Natan Send a message via Yahoo to Natan Send a message via Skype™ to Natan
Mr. Man
Veteran Member
Join Date: Mar 2011
Location: Huh?
Old 07-28-2018 , 04:24   Re: [Linux/L4D2] Managing Server Shutdown Exceptions
Reply With Quote #5

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.
Mr. Man is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode