Can't get enough SRCDS.com? Follow us on Twitter! Join us on IRC!


Post Reply 
srcds.exe has stopped working, any way to stop this?
Author Message
Fizzadar Offline
Newbie

Posts: 5
Joined: Jun 2009
Reputation: 0
Post: #1
 srcds.exe has stopped working, any way to stop this?
The bug is irrelevant, what is annoying is the fact that when it does stop working, it still "runs", meaning the batch file doesn't restart it, and the server sits down. Is there anyway to make windows auto-close these problems?

Windows Web 2008 btw.

Rawr!
06-26-2009 11:41 PM
Find all posts by this user Quote this message in a reply
realchamp Away
I didn't make this post -->

Posts: 5,555
Joined: May 2008
Reputation: 54
Post: #2
RE: srcds.exe has stopped working, any way to stop this?
Post your batch script please.

myself Wrote:Haunt me.. if you want me, but I warn you if you ever step to me!
06-26-2009 11:42 PM
Find all posts by this user Quote this message in a reply
Fizzadar Offline
Newbie

Posts: 5
Joined: Jun 2009
Reputation: 0
Post: #3
RE: srcds.exe has stopped working, any way to stop this?
Whoops, will do:

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 Watchdog
:srcds
echo (%time%) srcds started.
start /wait /high ZombifiedWorld1\orangebox\srcds.exe -console -game garrysmod -tickrate 40 -port 27016 -exec server.cfg +maxplayers 24 +map zm_cleanup_b2 +r_hunkalloclightmaps 1 +sv_defaultgamemode "ZombifiedWorld"
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds

Rawr!
06-26-2009 11:55 PM
Find all posts by this user Quote this message in a reply
pengy Away
Gone

Posts: 1,035
Joined: Oct 2008
Reputation: 11
Post: #4
RE: srcds.exe has stopped working, any way to stop this?
Batch files always wait for the program to be killed, there is really no way to stop it using a batch file. You either need to get the one server checker program, or install it as a service using firedaemon.

[Image: b_350x20_C002748-004880-FFFFFF-000000.png]
06-27-2009 05:42 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump: