I was wondering if anyone had any scripts for windows server that when my srcds server crashes it will automatically restart it?
Server Doc works well.
@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 INSERT YOUR LAUNCH OPTIONS HERE echo (%time%) WARNING: srcds closed or crashed, restarting. goto srcds
[editline]13th January 2015[/editline]
save it as a .bat file and use this to start the server from now on
That won’t do you any good when SRCDS freezes.
srcds here did freeze quite a bit where yes it did actually crash and restart automatically by itself
I’ve decided to use ServerDoc, Crashed my server on purpose and it restarted it for me. Just what i needed. Thanks!