Jump to content

Strange Server Restarter Problem


wrt12345

Recommended Posts

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.....

 

efaa90a406.png

@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

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 hahahaha

but was that it

set ServerMonitorPath="C:\Users\Administrator\Desktop\Arma3 Epoch New\"

%ServerMonitorPath%

Link to comment
Share on other sites

here is my keep alive

@echo off

::IMPORTANT TO NAME IT SO WE CAN KILL IT

title servermonitor.cmd

: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:\Users\Administrator\Desktop\Arma3 Epoch New\restartserver.cmd"

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 server stop file

@echo off

::KILL ARMA3 SERVER

taskkill /f /fi "status eq not responding" /im arma3server.exe

taskkill /f /im arma3server.exe

timeout 1

::DOUBLE CHECK KILL

taskkill /f /fi "status eq not responding" /im arma3server.exe

taskkill /f /im arma3server.exe

timeout 1

:: KILL BATTLEYE

taskkill /im Bec.exe

timeout 1

::KILL SERVER MONITOR

taskkill /f /im cmd.exe /fi "WINDOWTITLE eq Administrator: servermonitor.cmd" /T

taskkill /f /im conhost.exe /fi "WINDOWTITLE eq Administrator: servermonitor.cmd" /T

timeout 1

::KILL ALL COMMAND.EXE THAT ARE OPEN

taskkill /f /fi "status eq not responding" /im cmd.exe

taskkill /f /im cmd.exe

taskkill /f /fi "status eq not responding" /im conhost.exe

taskkill /f /im conhost.exe

timeout 1

::DOUBLE TAP

taskkill /f /fi "status eq not responding" /im cmd.exe

taskkill /f /im cmd.exe

taskkill /f /fi "status eq not responding" /im conhost.exe

taskkill /f /im conhost.exe

timeout 1

as you can see the 3 cmd files there is nothing pointing to the servermonitor.exe i removed

but it still wants to open this file very strange

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...