LoveGuru 0 Report post Posted January 16, 2016 So i run like 2 exile servers, and 2 other arma 3 servers and I am wondering how to get a server monitor that watches all 4 of them and will restart them if it goes down. This is what i use to use for 1 server and it worked amazingly. Here is my Servermonitor.bat for my old server. Then i ran a restart.bat. @echo off ::IMPORTANT TO NAME IT SO WE CAN KILL IT title servermonitor.bat :start C:\Windows\System32\tasklist /FI "IMAGENAME eq arma3server.exe" 2>NUL | C:\Windows\System32\find /I /N "arma3server.exe">NUL if "%ERRORLEVEL%"=="0" goto loop echo Server is not running, will be started now start "" /min /wait "C:\Servers\Arma3\steamapps\common\Exile_Chern\restartserver.bat" timeout 30 echo Server started succesfully goto started :loop cls echo Server is already running, running monitoring loop :started ::THE 80 REFERS TO SECONDS AND HOW OFTEN IT WILL CHECK,YOU CAN SET IT TO WHATEVER YOU WANT. I JUST DONT WANT MY SERVER DOWN FOR MUCH LONGER THAN THAT! ::New error fault kill, will check for err fault and clear it and hopefully restart, a little more promise but no guarantee taskkill /f /im WerFault.exe /fi "WINDOWTITLE eq Arma 3" C:\Windows\System32\timeout /t 80 C:\Windows\System32\tasklist /FI "IMAGENAME eq arma3server.exe" 2>NUL | C:\Windows\System32\find /I /N "arma3server.exe">NUL if "%ERRORLEVEL%"=="0" goto loop goto start Here is my restart.bat @echo off ::MAKE SURE ALL TASKS ARE REALLY STOPPED taskkill /f /fi "status eq not responding" /im arma3server3.exe taskkill /f /im arma3server.exe timeout 1 ::IF YOU PLAY ON SAME PC AS SERVER, SOMETIMES RESTARTS GET HUNG UP BECAUSE OF IT SO MAKE SURE TO KILL CLIENTSIDE TOO, I DONT, BUT JUST IN CASE YOU DO taskkill /f /fi "status eq not responding" /im arma3.exe taskkill /f /im arma3.exe timeout 1 :: KILL BATTLEYE IF IT ISN'T ALREADY taskkill /im Bec.exe ::SHUTDOWN SERVERMONITOR IF IT IS ALREADY RUNNING - WE RESTART IT AT THE END OF THIS taskkill /f /im cmd.exe /fi "windowtitle eq servermonitor.bat echo Make sure all is clear echo Restarting Battleye ::RESTARTING BATTLEYE set becpath="C:\Servers\Arma3\steamapps\common\Exile_Chern\BEC\" cd /d %becpath% start "" /min "Bec.exe" --dsc -f Config.cfg timeout 3 echo Battleye has started.. echo. echo. echo Starting ARMA 3 Server... ::RESTARTING THE ARMA 3 SERVER BE SURE TO EDIT THIS TO YOUR SERVER .EXE LOCATION -NOTE ALSO THIS IS WHERE YOU DEFINE WHERE YOU CONFIG.CFG IS cd C:\Servers\Arma3\steamapps\common\Exile_Chern timeout 3 start "Arma3" /min /wait arma3server.exe -mod=@exile;@AllInArmaTerrainPack;@CUP_Weapons;@ASDG_JR;Kart,Mark,Heli; -servermod=@exileserver;@infiSTAR_Exile; -config=C:\Servers\Arma3\steamapps\common\Exile_Chern\@ExileServer\config.cfg -port=2302 -profiles=BE -cfg=C:\Servers\Arma3\steamapps\common\Exile_Chern\@ExileServer\basic.cfg -name=BE -autoinit -enableHT timeout 6 echo ARMA 3 Server has started :: THIS RUNS THE SERVER MONITOR FOR YOU SO YOU DON'T FORGET set ServerMonitorPath="C:\Servers\Arma3\steamapps\common\Exile_Chern" cd /d %ServerMonitorPath% start "" "servermonitor.bat" echo Server Monitor has started. Have Fun timeout 5 exit And then in BEC i set my schedular to run a stop.bat to stop the server on restart. My question is how would i set all my arma 3 servers up so if 1 goes down it will start back up like I had it setup here. I ran into a problem. It shuts down all the arma servers and only starts 1 back up. Lost and confused. Think it has something to do with it looking for windows arma3server.exe but I wouldnt know how to set it up for all. Please help thank you. Share this post Link to post Share on other sites
Tush 1 Report post Posted July 2, 2016 Easy, Run it as a service, When it crashes, it will auto restart. NSSM (Non Sucking Service Manager) works great for this. 1 Share this post Link to post Share on other sites