Jump to content
  • 0

[HELP] L2J Server Auto Restarter Program


Question

Posted

Ok well I know how to make an SQL Restart and make it restart every so often and I have that running on my server, but I need help finding a program that will automatically restart my server if it happens to go offline for 1 reason or another. Anyone know of such a program?

 

Thanks,

Th3On3

2 answers to this question

Recommended Posts

  • 0
Posted

Edit your StartGameServer.bat to match this:

 

if ERRORLEVEL 2 goto restart
if ERRORLEVEL 1 goto error
goto end
:restart
echo.
echo Admin Restart ...
echo.
goto start
:error
echo.
echo Server terminated abnormally
echo Please check the logs for error messages
echo.
echo Initiating auto-restart
goto start
:end
echo.
echo server terminated
echo.
pause

 

This will restart the server automatically if it crashes.

  • 0
Posted

Edit your StartGameServer.bat to match this:

 

if ERRORLEVEL 2 goto restart
if ERRORLEVEL 1 goto error
goto end
:restart
echo.
echo Admin Restart ...
echo.
goto start
:error
echo.
echo Server terminated abnormally
echo Please check the logs for error messages
echo.
echo Initiating auto-restart
goto start
:end
echo.
echo server terminated
echo.
pause

 

This will restart the server automatically if it crashes.

 

Ok I added that Thanks

Guest
This topic is now closed to further replies.


×
×
  • Create New...