GMOD server crash - good server restarter?

What program(s) do you personally use to restart srcds.exe after it’s crashed?

Searching Facepunch, related threads are from 2008 and 2009. A buddy of mine has been hosting a GMOD server for years now. He used to use “Server Restarter” (I did too for a while). But at some point, it quit working. Currently, he is using a script and AutoIt clicker, and it works for normal crashes. But engine errors such as “entity outside of world” will not restart on their own. I assume it’s due to a pop up box error or something, I don’t have access to his machine. The server is losing popularity due to extended down time, when we have to hunt down and bother the owner to restart it every crash.

So I need a program that can restart the server in ALL situations. I’m currently looking at ServerDoc, but some people have said they can’t get it to work. Can anyone confirm that it still works, or suggest a better alternative?

What about the batch server started from srcds.com?

If you’re talking about this…


::=======================::
::  SRCDS Guardian 3.0   ::
::         Mooga         ::
::       SRCDS.com       ::
::=======================::

::=========================================================::
:: Thanks To Black-Sky & Drocona for making SRCDS Guardian ::
:: This script is open source.  Feel free to edit at will. ::
::                                                         ::
:: This version was written for use with Fortress Forever. ::
:: Please visit fortress-forever.com for more information. ::
::                                                         ::
:: This script was writen for the use of the srcds.com     ::
:: online community.  If you are interested in running a   ::
:: Source Dedicated Server or need help, drop by our       ::
:: forums at... http://forums.srcds.com                    ::
::=========================================================::

::=======================::
::  SET YOUR VARIABLES!  ::
::=======================::

::=======================::
::  Window and Log name  ::
:: Replace "My FF Server"::
::=======================::
set servername=My FF Server

::=======================::
::   Your start command  ::
::    Replace after =    ::
::=======================::
set runcmd=C:\ff-server\srcds.exe -console -game fortressforever -maxplayers 22 +fps_max 200 -port 27015 +map ff_2fort -tickrate 66

::=======================::
::   End of variables    ::
::=======================::

:: This will keep the window clean and easy to read
@echo off

:: Sets the title of the window
title SRCDS Guardian 3.0   %servername%

:: Clears the window incase there is anything there
cls

:: Prints to the window what we are doing
echo SRCDS Guardian 3.0 has been started!
echo.
echo *************************************************************************
echo To close the server, close this window and type exit in the server window
echo *************************************************************************
echo.
echo.
echo %servername% is now starting...
>> "%servername%.log" echo.
>> "%servername%.log" echo.
>> "%servername%.log" echo (%date%)(%time%) SRCDS Guardian 3.0 has been started!
>> "%servername%.log" echo (%date%)(%time%) %servername% is now starting...

:: This is a return point in case the server crashes or is closed
:restart

echo.
echo (%date%)(%time%) %servername% is now ONLINE
echo Watching %servername% for crashes...
>> "%servername%.log" echo.
>> "%servername%.log" echo (%date%)(%time%) %servername% is now ONLINE
>> "%servername%.log" echo (%date%)(%time%) Watching %servername% for crashes...

::Start the actual server
start /wait %runcmd%

echo.
echo (%date%)(%time%) Crash or Close detected!
echo %servername% is now restarting...
>> "%servername%.log" echo.
>> "%servername%.log" echo (%date%)(%time%) Crash or Close detected!
>> "%servername%.log" echo (%date%)(%time%) %servername% is now restarting...

::Server crashed or closed, so we point it to the return point to start the server again
goto restart

I’m pretty sure that doesn’t restart a server that pops up the engine error box. But I’ll make sure he’s seen it anyway.