Absurd Minds
http://forums.absurdminds.net/

Simple Server Shutdown v1.0 AMXModX Plugin
http://forums.absurdminds.net/viewtopic.php?f=18&t=2093
Page 1 of 1

Author:  Rich Nagel [ 10 Oct 2013 22:46 ]
Post subject:  Simple Server Shutdown v1.0 AMXModX Plugin

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.

Author:  Amaroq [ 11 Oct 2013 06:47 ]
Post subject:  Re: Simple Server Shutdown v1.0 AMXModX Plugin

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.

Author:  Rich Nagel [ 11 Oct 2013 08:22 ]
Post subject:  Re: Simple Server Shutdown v1.0 AMXModX Plugin

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 :)

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/