WickedMoonShiner 10 Report post Posted September 19, 2015 So I might be doing this all wrong but wanted input from you all.I have multi servers on a testing system that I would like to spin up at the same time. That is not the issue as I just change the port but what I have going on is that I use BEC to do my reboots Let me provide you some examples below. I have BEC that runs in the background to monitor my server and if anything goes down it auto restarts also when the 4 hours are up scheduler issues a stopserver.bat and then the monitor.bat restarts my startserver.bat. Is there a easier way because I can't run the scripts as I have it watching the windows because it is going to start shutting down the wrong windows. I feel I might be working harder then I should at this. I currently have 1x Exile Server 1x Exile Dev and 1x Altis Life server Scripts I just edit the scripts for each system and then down one to start the other.restartserver.bat@echo offtaskkill /f /fi "status eq not responding" /im arma3server.exetaskkill /f /im arma3server.exetimeout 1taskkill /f /im cmd.exe /fi "windowtitle eq Administrator: servermonitor.bat"echo Make sure all is clearcd C:\Servers\Arma3Exiletimeout 3start "arma3" "C:\Servers\Arma3Exile\arma3server.exe" "-serverMod=@ExileServer;@infiSTAR_servermod;" "-mod=@Exile;" -port=2302 "-config=C:\Servers\Arma3Exile\@ExileServer\config.cfg" "-cfg=C:\Servers\Arma3Exile\@ExileServer\basic.cfg" -profiles=logs -BEPath=C:\Servers\Arma3Exile\battleye -name=logs -malloc=tbbmalloc -nosplash -noSound -noPause -autoinit -enableHTtimeout 30echo ARMA 3 Server has startedset becpath="C:\Servers\Exile_BEC"cd /d %becpath%start "" "Bec.exe" -f Config.cfg --dsctimeout 3echo Battleye has started.. echo.echo.set ServerMonitorPath="C:\Servers\Arma3Exile\"cd /d %ServerMonitorPath%start "" "servermonitor.bat"echo Server Monitor has started. Have Funtimeout 5exit StopServer.bat@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 1ServerMonitor.bat@echo offtitle servermonitor.bat: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 now start "" /min /wait "C:\Servers\Arma3Exile\restartserver.bat"timeout 30echo Server started succesfullygoto started:loopclsecho Server is already running, running monitoring loop:startedC:\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 start Is there another tool I should check into to help me manage multi servers? Any suggestion would be awesome. I am open. But I am just a Basic programmer I can't do anything crazy. Share this post Link to post Share on other sites
Starfish 2 Report post Posted September 19, 2015 (edited) Not sure if I get you'r core problem right, but if I do theres an easy solution: rename your arma3server.exe corresponding to your server. Like, name it arma3exileDEV.exe, change all your scripts and .bats to fit the name and voila, it'll only kill/restart the specific server.You could also go by PID, but thats actually too much hazzle as a secondary way for one that gets it fixed easy as pie. Edit: same for your BEC - it auto-cancels the process when it doesnt find the server any more, but renaming it to easily keep track of which BEC belongs to which server cant hurt Edited September 19, 2015 by Starfish 1 Share this post Link to post Share on other sites
WickedMoonShiner 10 Report post Posted September 19, 2015 Not sure if I get you'r core problem right, but if I do theres an easy solution: rename your arma3server.exe corresponding to your server. Like, name it arma3exileDEV.exe, change all your scripts and .bats to fit the name and voila, it'll only kill/restart the specific server.You could also go by PID, but thats actually too much hazzle as a secondary way for one that gets it fixed easy as pie. Edit: same for your BEC - it auto-cancels the process when it doesnt find the server any more, but renaming it to easily keep track of which BEC belongs to which server cant hurtThanks that is kinf od what I was looking for. I have been toying with the idea of making a panel with like Server 1 and 2 and 3 in it can I can just click start and stop on it. Thanks for the input @StarFish Share this post Link to post Share on other sites
Tech_Support 5 Report post Posted April 9, 2017 This is easy setup servers (each server in its own folder, 1x Exile Server 1x Exile Dev and 1x Altis Life server ) install BEC to each server folder (check server messages and restart warning messages are working, use a working scheduler.xml) make 3 new bat files on your desktop name them the same as each server folder (so you know what monitor script is monitoring what server) paste a working monitor batch script code into each file then edit the command-lines and file paths in each file to match your servers here is a monitor script i put together for my epoch servers https://epochmod.com/forum/topic/42995-release-serverbec-monitor-auto-restart-auto-backup-sql-db-script/ or edit Seths @echo off cls set version=0.9.19 set wat=Arma3 Exile title %wat% Watchdog cd A3Master :watchdog echo (%time%) %wat% started. start "Exile" /wait /high "arma3server.exe" -port=2302 "-serverMod=@ExileServer;@marma" "-mod=@Exile;" "-config=@ExileServer\config.cfg" "-cfg=@ExileServer\basic.cfg" -profiles=config_exile -name=exile -malloc=tbbmalloc -autoinit -enableHT echo (%time%) %wat% closed or crashed, restarting. goto watchdog Share this post Link to post Share on other sites