SRCDS Steam group

Auto Restart Windows Crash
Hi guys... over the past few days i have been scouring the forums looking for a crash fix file for windows. From what it seems, most of you host your own server that you can touch physically, i buy one from a company. I have no clue about batches, and my server seems to crash like once a day. Is there something that i can put on my CSS windows server that restarts it when it goes down?


Bottom of page - a little explanation on the batch file and sample code you can use for your server too.
Hmm you rent one from a company? That would be tricky but what do you mean? Rent a single server or a dedicated server?
realchamp Wrote:
Hazz Wrote:Has someone helped you on these forums? If so, help someone else
Mooga Wrote:OrangeBox is a WHORE.
Umm i pay them money and i have ftp access and the server goes on the net... i dont really know what your asking
with this bit:
"Batch files are little script files that tell Windows what to do. If srcds crashes, it will not restart like possible under Linux. (Linux uses a "Script" file too)
What we are going to do is make sure that as soon HLDS suddenly quits it will restart. First we open notepad. What we write in there is the following:
@echo off
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 Watchdog
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

Replace the marked part with your own commandline and values. Save the file as C:\srcds\srcds.bat in notepad (NOT .txt) and next time click the srcds.bat file. If you need to close srcds, close the hlds window and press Y (depending on language) at the Terminate batch question. Please do note this does not work with crashes/errors that involve a Windows error box."

Do i make a batch on my comp, then upload onto ftp and then what?
If you don't have access to the server via Remote Desktop, SSH for windows or Telnet - i don't believe you can use this file to run (and restart) your server.
Talk to your server providers.
Tell them you want the server to automatically re-start.
~ Mooga ...w00t? - on Twitter
[Image: 76561197965445574.png]
Please do not PM me for server related help
fqdn Wrote:if you've seen the any of the matrix movies, a game server is not all that different. it runs a version of the game that handles the entire world for each client connected. that's the 2 sentence explanation.

Forum Jump:

Users browsing this thread: 1 Guest(s)