A3 Stratis WL Restart questions

  • Offline OLB
  • Fresh Spawn
  • *
  • Posts: 11

A3 Stratis WL Restart questions

« posted: Feb 06, 2018, 02:34 AM »
I own a dedicated windows server, I can figure everything except one thing and that is getting BEC to work for the restart. I have the config file setup the way it should. I can even get a bat file to open the server. I cannot however get BEC to located my server while it is running. I do run it off my own .bat file and not TADST. Please see below for the code in my bat file to start the search and then start BEC. I am sure that I am missing something stupid overall but if anyone has some experience with and is will to help please help!

@echo off
d:
:start
c:\Windows\System32\tasklist /FI "arma3server_x64.exe" 2>NUL | c:\Windows\System32\find /I /N "arma 3.exe">NUL
if "%ERRORLEVEL%"=="0" goto loop
echo Arma3 server not found, will be started now!
d:
cd C:\Arma3Stratis\BEC
start "" /min C:\A3Tools\BEC\bec.exe -f Config.cfg
cd "d:\ARMASERVERFOLDER\A3Files\"
start "" /HIGH /min /wait "C:\Arma3Stratis\A3.Stratis.Server_x64.bat"
echo Server started succesfully
goto started
:loop
cls
echo Server is already running, running monitoring loop
:started
c:\Windows\System32\timeout /t 10
c:\Windows\System32\tasklist /FI "IMAGENAME eq arma3server.exe" 2>NUL | c:\Windows\System32\find /I /N "arma3.exe">NUL
if "%ERRORLEVEL%"=="0" goto loop
c:\Windows\System32\taskkill /im arma3server.exe
goto start