Ok I think I have this figured out, Thank you Mauricio! These have been really helpful.
So this script:
@echo off
title DayZ Standalone Brasil - Monitoramento
:start
C:\Windows\System32\tasklist /FI "IMAGENAME eq DayZServer_x64.exe" 2>NUL | C:\Windows\System32\find /I /N "DayZServer_x64.exe">NUL
if "%ERRORLEVEL%"=="0" goto loop
cls
echo O servidor não esta rodando, iniciando agora...
start "Iniciando servidor" /wait "E:\SteamLibrary\steamapps\common\DayZServer\server_restart.bat"
echo Servidor iniciado com sucesso, trocando agora para o monitoramento
timeout 30
cls
goto started
:loop
cls
echo Servidor esta rodando, continuando com o monitoramento...
:started
taskkill /f /im WerFault.exe /fi "WINDOWTITLE eq DayZ">NUL
C:\Windows\System32\timeout /t 20
C:\Windows\System32\tasklist /FI "IMAGENAME eq DayZServer_x64.exe" 2>NUL | C:\Windows\System32\find /I /N "DayZServer_x64.exe">NUL
if "%ERRORLEVEL%"=="0" goto loop
goto start
Is a .bat that needs to be running all the time. it checks every 20 seconds to see if the server is up. if the server is not up, it runs your restarting server batch. I kept the Portuguese in for flavor.
You also need to set up the scheduler. I have added this to scheduler.xml:
<!-- *** Restart at 12:00:00 AM ***-->
<job id="0">
<day>1,2,3,4,5,6,7</day>
<start>23:30:00</start>
<runtime>000000</runtime>
<loop>0</loop>
<cmd>say -1 Restarting server in 30 minutes!</cmd>
</job>
<job id="1">
<day>1,2,3,4,5,6,7</day>
<start>23:45:00</start>
<runtime>000000</runtime>
<loop>0</loop>
<cmd>say -1 Restarting server in 15 minutes!</cmd>
</job>
<job id="2">
<day>1,2,3,4,5,6,7</day>
<start>23:55:00</start>
<runtime>000000</runtime>
<loop>0</loop>
<cmd>say -1 Restarting server in 5 minutes!</cmd>
</job>
<job id="3">
<day>1,2,3,4,5,6,7</day>
<start>23:59:00</start>
<runtime>000000</runtime>
<loop>0</loop>
<cmd>say -1 Restarting server in 1 minute!</cmd>
</job>
<job id="4">
<day>1,2,3,4,5,6,7</day>
<start>00:00:00</start>
<runtime>000000</runtime>
<loop>0</loop>
<cmd>#shutdown</cmd>
</job>
Copy paste that and change the times for every restart.
Now when the scheduler has a restart, it shuts down the server. then the monitor restarts the server. Note that you also need a batch that starts the server with all of your launch specs that the monitor can target. I haven't fully tested this yet so I cant 100% guarantee it will work, but the monitor system works for me. Anyone feel free to chime in with help!
.