-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathStart Server.cmd
29 lines (29 loc) · 1.29 KB
/
Start Server.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@echo off
:start
C:\Windows\System32\tasklist /FI "IMAGENAME eq arma2oaserver.exe" 2>NUL | C:\Windows\System32\find /I /N "arma20aserver.exe.exe">NUL
if "%ERRORLEVEL%"=="0" goto loop
echo ======================================================
echo DayZ Origins Start/Restart Script by DreadedZombie
echo A modified Arma 3 Restarter by eRazeri
echo ======================================================
echo.
echo Server monitored is not running, will be started now
echo Respawning Cars and Sector B Urals
echo Please wait...
start cmd /k Call ural-car-respawn.cmd
ping 127.0.0.1 -n 12 >NUL
echo finished.
echo.
echo Starting server...
start "" /wait Expansion\beta\arma2oaserver.exe -beta=Expansion\beta;Expansion\beta\Expansion -nosplash -cpuCount=4 -maxMem=4096 -exThreads=7 -name=Origins -profiles=dayz_1.origins.tavi -cfg=dayz_1.origins.tavi\basic.cfg -config=dayz_1.origins.tavi\config.cfg -mod=expansion;expansion\beta;expansion\beta\expansion;@DayzOrigins;@dayz_1.origins.tavi
echo.
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 arma2oaserver.exe" 2>NUL | C:\Windows\System32\find /I /N "arma2oaserver.exe">NUL
if "%ERRORLEVEL%"=="0" goto loop
goto start