Absurd Minds

More than 100 years without a motto.
It is currently 24 Nov 2024 13:01

All times are UTC-04:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 10 Oct 2013 22:46 
Offline
User avatar

Joined: 16 Jun 2012 12:33
Posts: 122
Location: Crystal River, Florida USA
Something that y'all may be interested in:

It's always a good idea to restart your GoldSource dedicated server at least once a day. This clears out the memory used but "HLDS.exe" process, and in general can help to make things run smoother.

Many GoldSource game server companies provide for a way to restart your game server on a daily basis (via your server's web-based CPanel), but MANY server companies do NOT.

Anyhow, this AMXModX plugin (Simple Server Shutdown v1.0) coded by me:

Readme -> http://jasonwilliams400com.startlogic.c ... Plugin.txt

ZIP -> http://jasonwilliams400com.startlogic.c ... Plugin.zip

...used in conjuction with this AMXModX plugin (Task Scheduler v0.3) modified by me:

Readme -> http://jasonwilliams400com.startlogic.c ... Plugin.txt

ZIP -> http://jasonwilliams400com.startlogic.c ... Plugin.zip

...works like a charm to shut down and restart a dedicated server once a day :)


P.S. I dunno if this thing will also work on a Source/CS:GO server, but it might.

_________________
Rich ¥Weeds¥ Nagel
http://www.richnagel.net
http://steamcommunity.com/id/RichNagel
http://steamcommunity.com/groups/SwampBuzzardsClan
http://jasonwilliams400com.startlogic.c ... er_Strike/


Top
   
PostPosted: 11 Oct 2013 06:47 
Offline
User avatar

Joined: 25 Mar 2010 19:07
Posts: 8392
We always run Linux servers, so we're able to control it through crontab, but I'm sure this will be extremely useful to anybody not making use of crontab. I really like that it provides a countdown. One thing I prefer about running the shutdown through crontab is that if the server is frozen or hanging this plugin wouldn't be able to execute the required console command. Our GunGame server used to freeze all the time and I had to write a seperate script to check if it was responsive and execute a server kill and restart if it wasn't.

_________________
Server list
Donate


Top
   
PostPosted: 11 Oct 2013 08:22 
Offline
User avatar

Joined: 16 Jun 2012 12:33
Posts: 122
Location: Crystal River, Florida USA
Quote:
One thing I prefer about running the shutdown through crontab is that if the server is frozen or hanging this plugin wouldn't be able to execute the required console command. Our GunGame server used to freeze all the time and I had to write a seperate script to check if it was responsive and execute a server kill and restart if it wasn't.
I've been helping someone with a Day of Defeat Windows dedicated server (running my newer SturmBot v1.9 and the newest version of AMXMoX), and I swear... that server is the most problematic thing that I've ever seen!

I'm SURE that it just MUST have something with the actual server box (the hosting company is GTSGaming), but it's really hard to track down and pinpoint the problem... numerous crashes, and total lockups of the HLDS.exe process itself.

The big problem is that the server company doesn't provide for a way to restart your server on a daily basis, and worse yet... when I've seen the HLDS.exe process actually lockup, it would be in that state until WE actually shut down and restarted the server (via the web-based CPanel that the hosting company provides). Apparently they don't even have some sort of check for if a given server's process has hung up, and then to restart it :(

Quote:
We always run Linux servers, so we're able to control it through crontab, but I'm sure this will be extremely useful to anybody not making use of crontab. I really like that it provides a countdown.
You just MIGHT be able to write a script that would FIRST have crontab check if the process has frozen, and if so, restart it (like you detailed above).

Then, the script could check if the process has NOT frozen, and if it hasn't, crontab would simply execute/RCON "simple_server_shutdown" at your specified time of day in crontab... that would give you the spiffy client countdown messages and alerts :)

_________________
Rich ¥Weeds¥ Nagel
http://www.richnagel.net
http://steamcommunity.com/id/RichNagel
http://steamcommunity.com/groups/SwampBuzzardsClan
http://jasonwilliams400com.startlogic.c ... er_Strike/


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC-04:00


Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited