09-30-2006, 09:41 PM
Hey All,
I've got some stupid admins on my server and as much as I would love to remove them I can't so...
I'm currently using the watchdog script
but if people screw around with the grav srcds.exe will go up to 99% CPU usage. Is it possible to add something into the .bat to kill srcds if it gets over 99% CPU usage?
Also, on some crappy maps I get a vbscript error (or something similar) and the server restarts, but I need to press enter to get rid of the dialoge box and put the server back up. Can I add something to the .bat for that too?
Thanks for any help, I'm not great with Windows systems.
I've got some stupid admins on my server and as much as I would love to remove them I can't so...
I'm currently using the watchdog script
Code:
@echo off
cls
echo Protecting srcds from crashes...
echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.
title srcds.com Watchdog
:srcds
echo (%time%) srcds started.
start /wait srcds.exe -console -game cstrike +map de_dust +maxplayers 16
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds
but if people screw around with the grav srcds.exe will go up to 99% CPU usage. Is it possible to add something into the .bat to kill srcds if it gets over 99% CPU usage?
Also, on some crappy maps I get a vbscript error (or something similar) and the server restarts, but I need to press enter to get rid of the dialoge box and put the server back up. Can I add something to the .bat for that too?
Thanks for any help, I'm not great with Windows systems.