Skip to content

[HELP] L2J Server Auto Restarter Program

Featured Replies

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

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.

  • Author

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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.