I have finished my script on windows. It first stops the ftp service,
then, for each hlds server on the box it will:
{
Stop the server.
Backup the liblist.gam, server.cfg, and hltv.cfg
Run the steam updater for the game (cstrike, valve, dod, etc.)
Scan for "HLDS installation up to date". If found, then done, else try
the steam updater again.
Restore the previously backed up config files.
Clear out the custom.hpk file.
Start the server.
}
It will then restart the ftp service when complete. It is intelligent
to valve mods (sev, ozdm, etc.) and will give up after 50 tries per
server. All configuration information is stored in one file.
It's fun to look at the logs. Each time I see the script retry, I think
how all those socket and content ticket errors could easily add up to
surpass the couple hours I spent writing the script. As of right now,
however, I'm still in the negative.
Dave
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Fencik
Sent: Thursday, April 29, 2004 1:16 PM
To: [EMAIL PROTECTED]
Subject: RE: [hlds] RE: hlds digest, Vol 1 #2748 - 10 msgs
This is why my linux shell script scanned for "HLDS Installation up to
date" on stdout. This can be done with windows also...i'm not sure how.
Dave
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason A. Enzer
Sent: Thursday, April 29, 2004 9:45 AM
To: [EMAIL PROTECTED]
Subject: [hlds] RE: hlds digest, Vol 1 #2748 - 10 msgs
Eric,
When you say possible to automatically update windows servers you must
take
into consideration how many socket errors and invalid tickets one would
get
on the day of the update...
Jenzo
For those of you using Windows (especially with FireDaemon, as I am) it
IS =
possible to have a true automatic update via the use of a batch script
and =
the handy netstat command.
Here's the batch file I use to stop my server, delete stats, run the
update=
tool, then restart my server. The net name of your server is whatever
you=
named it in FireDaemon. I assume this will work for non-firedaemon
server=
s as well. I run this every Thursday at about 3 AM.
cd \
cd program files
cd firedaemon
net stop FireDaemonServiceName <=3D=3D=3DREPLACE WITH THE NET NAME OF
YOUR =
SERVER
cd \
cd HLServer\cstrike\addons\amx\
del /f csstats.dat <=3D=3D=3D=3DWHILE I'M AT IT, I RESET MY SERVER STATS
cd \
cd HLServer <=3D=3D=3D=3DREPLACE WITH LOCATION OF HLSERVER
HldsUpdateTool.exe -command update -game cstrike -dir D:\YOURHLPATH
-userna=
me YOURUSERNAME -password YOURPASSWORD -remember_password -verify_all
cd \
cd program files
cd firedaemon
net start FireDaemonServiceName <=3D=3D=3D=3DREPLACE WITH THE NET NAME
OF Y=
OUR SERVER
Eric
_______________________________________________
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
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlds