This is a simple world restart script. Please feel free to modify the code as you see fit. You can change the script variables for the running process it is monitoring and how often it checks the process is running.
I thought I would share this. This isn't what I use on the VZTZ server but this might help some of the other operators if they have trouble.
This can also be used to monitor the eqlauncher.exe by simply changing "SET PROCESS=World.exe" to "SET PROCESS=eqlauncher.exe" in the batch script.
1. Open notepad and paste the following code inside it and save it and Monitor.bat
Code:
@ECHO OFF
SET PROCESS=World.exe
SET TIME=15
:LOOP
wait.exe %TIME%
pv.exe %PROCESS%
if ERRORLEVEL 1 GOTO START
GOTO LOOP
:START
start %PROCESS%
GOTO LOOP
2. Download
PrcView and extract the pv.exe
3. Download
Wait and extract wait.exe
4. Put all 3 files (Wait.exe, pv.exe and Monitor.bat) into your server directory and you can run Monitor.bat and every 15 seconds it will check for a running process named World.exe and if it is not running it will start the program automatically.