And pretty much anyone who is in the "provider" business has some form of automated tools.
I, for instance, use SVN to distribute game servers to individual machines. Also, I have scripts that can restart all of the servers. Also have some neat script to do things like move a server install to a different machine and automagically generate an email that lets the customer know the new IP and port. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Saint K. Sent: Saturday, February 04, 2006 6:33 AM To: hlds@list.valvesoftware.com Subject: Re: [hlds] Auto-restart (was: SRCDS Memory hog now!) www.dumbclan.co.uk/downloads/serverchecker/ Its a production of my community, its open source and working very good. We're currently working on a total revised version of serverchecker, but V3.01 should do the task fine for now. Saint K. ----- Original Message ----- From: "Andrew Armstrong" <[EMAIL PROTECTED]> To: <hlds@list.valvesoftware.com> Sent: Saturday, February 04, 2006 1:05 PM Subject: RE: [hlds] Auto-restart (was: SRCDS Memory hog now!) > Try GameMon. > > http://www.mammoth.com.au/software.php > > Its free/open source so you can modify it if you need to. > > It can restart the server daily (or every X hours) as well as restart > it if it fails. > > Heres an example usage that would restart the server daily at 5am: > > Gamemon -d "c:\srcds " -c "c:\srcds\srcds.exe -game cstrike" -g a2s -p > 31000 -h 5 -m 0 --timeout 30 > > This would start srcds.exe with the parameter -game cstrike from c:\srcds. > > -p 31000 > Tells gamemon what port to query to check the server is alive. > -h 5 and -m 0 tell it to restart at 5am (0 minutes). > > -g a2s, tells gamemon to query the server using the a2s qstat protocol > ("-a2s query Half-Life 2 new server") > > --timeout 30 means gamemon will restart the process if it fails to > receive a query response for more than 30 seconds. > > The same protocol should work for HL1 servers as well. > > Type gamemon with no parameters to see a complete list of options. > > Works for both windows and linux. > > Remember to grab the latest qstat (the one posted at qstat.org is 2.8 > which is old). > > You can get the win32/linux qstat 2.10 from > http://sourceforge.net/project/showfiles.php?group_id=56603 > > Cheers, > Andrew > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Dan Sorenson > Sent: Saturday, 4 February 2006 2:13 AM > To: hlds@list.valvesoftware.com > Subject: [hlds] Auto-restart (was: SRCDS Memory hog now!) > > >>Anyways, don't want it to get too off topic. Haven't particularly >>noticed any "bad" mem leaks on our windows servers, but we tend to >>restart them fairly often as well so may mask any possible problems, > > This would seem a rather manual process, RCon on over to ensure nobody > is playing, issue the restart service command or kill the app and > launch it again, etc... > > For folks who run a server farm, it would be quite nice if there were > an automated way to do this. > > I'm thinking batch files at this point, something like a > numplayers.exe that would return an exit code for the number of > players connected minus bots. It would also be nice if we had a > service executable that would act as a wrapper for a number of srcds > instances -- kind of like firedaemon but from valve specifically to > handle the source engine beneath it. > > Anyway, I was thinking something like this: > > @ECHO OFF > C:\hlds\hldsquery.exe -ip 127.0.0.1 -port 27105 -numplayers if > %errorlevel% .NE. 0 goto JustExit :Restart net stop HLDSService if > %errorlevel% .gt. 0 c:\windows\Reskit\kill.exe hldswrap.exe net start > HLDSService goto:end > :JustExit: > echo "%1 players still gaming" > > > Hey, I didn't check it for syntax, it's psuedo-code. > I'm just thinking there ought to be a way to automate restarts given > this issue and others that seem to require it. > > - Dan > > * Dan Sorenson DoD #1066 A.H.M.C. #35 [EMAIL PROTECTED] * > * Vikings? There ain't no vikings here. Just us honest farmers. * > * The town was burning, the villagers were dead. They didn't need * > * those sheep anyway. That's our story and we're sticking to it. * > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlds > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlds > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.375 / Virus Database: 267.15.1/250 - Release Date: > 2/3/2006 > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds