wrt12345 Posted January 12, 2015 Report Share Posted January 12, 2015 My Issue today is :) when my server reboots its looking for ArmaServerMonitor.exe even though i removed it from the cmd file code as i was not using it, can anyone see how its calling this in the restarter code below, here is what i get when my server auto restarts, which then leads me to have to press okay to load bec which is not good (please see pic) thanks in advance..... @echo off ::SHUTDOWN SERVERMONITOR IF IT IS ALREADY RUNNING - WE RESTART IT AT THE END OF THIS taskkill /f /im cmd.exe /fi "WINDOWTITLE eq Administrator: servermonitor.cmd" taskkill /f /im conhost.exe /fi "WINDOWTITLE eq Administrator: servermonitor.cmd" echo Make sure all is clear timeout 1 ::MAKE SURE ALL TASKS ARE REALLY STOPPED taskkill /f /fi "status eq not responding" /im arma3server.exe taskkill /f /im arma3server.exe timeout 1 :: KILL BATTLEYE IF IT ISN'T ALREADY taskkill /im Bec.exe timeout 1 ::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 C:\Users\Administrator\Desktop\Arma3 Epoch New\ start "arma3" "arma3server.exe" -port=2302 "-config=C:\Users\Administrator\Desktop\Arma3 Epoch New\TADST\default\TADST_config.cfg" "-cfg=C:\Users\Administrator\Desktop\Arma3 Epoch New\TADST\default\TADST_basic.cfg" "-profiles=C:\Users\Administrator\Desktop\Arma3 Epoch New\TADST\default" -name=default "-mod=@allinarmaterrainpack;@Epoch;@EpochHive;@mas;" timeout 6 echo ARMA 3 Server has started ::RESTARTING BATTLEYE set becpath="C:\Users\Administrator\Desktop\Arma3 Epoch New\Bec\" %becpath% start "" "Bec.exe" -f Config.cfg timeout 6 echo Battleye has started.. echo. echo. echo Starting ARMA 3 Server... :: THIS RUNS THE SERVER MONITOR FOR YOU SO YOU DON'T FORGET set ServerMonitorPath="C:\Users\Administrator\Desktop\Arma3 Epoch New\" %ServerMonitorPath% start "" "servermonitor.cmd" echo Server Monitor has started. Have Fun timeout 6 exit Link to comment Share on other sites More sharing options...
machine6fd Posted January 12, 2015 Report Share Posted January 12, 2015 I hope you're trolling :P :: THIS RUNS THE SERVER MONITOR FOR YOU SO YOU DON'T FORGET set ServerMonitorPath="C:\Users\Administrator\Desktop\Arma3 Epoch New\" %ServerMonitorPath% start "" "servermonitor.cmd" echo Server Monitor has started. Have Fun timeout 6 exit wrt12345 and Nic 2 Link to comment Share on other sites More sharing options...
wrt12345 Posted January 12, 2015 Author Report Share Posted January 12, 2015 I hope you're trolling :P:: THIS RUNS THE SERVER MONITOR FOR YOU SO YOU DON'T FORGET set ServerMonitorPath="C:\Users\Administrator\Desktop\Arma3 Epoch New\" %ServerMonitorPath% start "" "servermonitor.cmd" echo Server Monitor has started. Have Fun timeout 6 exit I am actually not hahahahabut was that itset ServerMonitorPath="C:\Users\Administrator\Desktop\Arma3 Epoch New\"%ServerMonitorPath% Link to comment Share on other sites More sharing options...
wrt12345 Posted January 12, 2015 Author Report Share Posted January 12, 2015 when i start the server its fine, works perfect , but when it restarts by itself this error comes up as shown in the picture.The issue is with ArmaServerMonitor.exe not the ServerMonitor.cmd that monitors to see if the server is still running every 80 seconds. Link to comment Share on other sites More sharing options...
machine6fd Posted January 12, 2015 Report Share Posted January 12, 2015 Is this keep alive? Check the batch_settings file Link to comment Share on other sites More sharing options...
Richie Posted January 12, 2015 Report Share Posted January 12, 2015 Try FireDaemon, works 100% perfectly everytime and has never let me down, well worth the $49 it costs. Link to comment Share on other sites More sharing options...
wrt12345 Posted January 12, 2015 Author Report Share Posted January 12, 2015 here is my keep alive@echo off::IMPORTANT TO NAME IT SO WE CAN KILL ITtitle servermonitor.cmd:startC:\Windows\System32\tasklist /FI "IMAGENAME eq arma3server.exe" 2>NUL | C:\Windows\System32\find /I /N "arma3server.exe">NULif "%ERRORLEVEL%"=="0" goto loopecho Server is not running, will be started nowstart "" /min /wait "C:\Users\Administrator\Desktop\Arma3 Epoch New\restartserver.cmd"timeout 30echo Server started succesfullygoto started:loopclsecho 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 80C:\Windows\System32\tasklist /FI "IMAGENAME eq arma3server.exe" 2>NUL | C:\Windows\System32\find /I /N "arma3server.exe">NULif "%ERRORLEVEL%"=="0" goto loopgoto starthere is my server stop file@echo off::KILL ARMA3 SERVERtaskkill /f /fi "status eq not responding" /im arma3server.exetaskkill /f /im arma3server.exetimeout 1::DOUBLE CHECK KILLtaskkill /f /fi "status eq not responding" /im arma3server.exetaskkill /f /im arma3server.exetimeout 1:: KILL BATTLEYEtaskkill /im Bec.exetimeout 1::KILL SERVER MONITORtaskkill /f /im cmd.exe /fi "WINDOWTITLE eq Administrator: servermonitor.cmd" /Ttaskkill /f /im conhost.exe /fi "WINDOWTITLE eq Administrator: servermonitor.cmd" /Ttimeout 1::KILL ALL COMMAND.EXE THAT ARE OPENtaskkill /f /fi "status eq not responding" /im cmd.exetaskkill /f /im cmd.exetaskkill /f /fi "status eq not responding" /im conhost.exetaskkill /f /im conhost.exetimeout 1::DOUBLE TAPtaskkill /f /fi "status eq not responding" /im cmd.exetaskkill /f /im cmd.exetaskkill /f /fi "status eq not responding" /im conhost.exetaskkill /f /im conhost.exetimeout 1as you can see the 3 cmd files there is nothing pointing to the servermonitor.exe i removedbut it still wants to open this file very strange Link to comment Share on other sites More sharing options...
wrt12345 Posted January 12, 2015 Author Report Share Posted January 12, 2015 i found the error, it was in my Scheduler path, i made a backup copy and it is reading from this hahahahahaha god i feel so stupid.feel free to slap me about the head with rotten kippers guys :) Link to comment Share on other sites More sharing options...
machine6fd Posted January 12, 2015 Report Share Posted January 12, 2015 feel free to slap me about the head with rotten kippers guys :) I have never heard this before (I'm 'Murican) but I just laughed coffee onto my screen :lol: Truth is we all mess up and no one on this forum is perfect... I give you a hard time but I'm sure I've missed the little things so many times I could never count.... but it helps to talk it out with someone else... to get your mind thinking. :D wrt12345 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now