SRCDS Steam group


How to auto restart server?
#1
So I run a mod called obsidian conflict, hl2 orange box based, crases often, and when it does it takes me a few hours to realize-a day. This is not good, so I saw this script and it works
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 /high srcds.exe -console -game obsidian +map oc_lobby +maxplayers 12 -ip 192.168.1.118 -port 27015
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds

Thing is, the game relays back the error code and I have to hit ok, then it restarts. I don't care about the error code, I just want it to restart right after that. Is this possible?
Reply
#2
You would have to run the server as a service.
~ Mooga ...w00t? - SRCDS.com 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.
Reply
#3
yes but how can you run it like a service i have the same problem( i'm runn it as a bat fille) .
Reply
#4
So if I just use NTWrapper and ran it as a service, it would auto restart by itself, or what else do I have to do?
Reply
#5
Got it... used serverchecker, magnificent program Big Grin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)