|
|
|
@ -19,8 +19,6 @@ set "login_running=false"
|
|
|
|
|
set "char_running=false"
|
|
|
|
|
set "web_running=false"
|
|
|
|
|
set "map_running=false"
|
|
|
|
|
set "brokk_running=false"
|
|
|
|
|
set "sindri_running=false"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if "%target%" == "status" (
|
|
|
|
@ -41,8 +39,6 @@ call :stopLogin
|
|
|
|
|
call :stopChar
|
|
|
|
|
call :stopWeb
|
|
|
|
|
call :stopMap
|
|
|
|
|
call :stopBrokk
|
|
|
|
|
call :stopSindri
|
|
|
|
|
goto :EOF
|
|
|
|
|
|
|
|
|
|
:Watch
|
|
|
|
@ -53,8 +49,6 @@ call :startLogin
|
|
|
|
|
call :startChar
|
|
|
|
|
call :startWeb
|
|
|
|
|
call :startMap
|
|
|
|
|
call :startBrokk
|
|
|
|
|
call :startSindri
|
|
|
|
|
goto :EOF
|
|
|
|
|
|
|
|
|
|
:Start
|
|
|
|
@ -64,8 +58,6 @@ call :startLogin
|
|
|
|
|
call :startChar
|
|
|
|
|
call :startWeb
|
|
|
|
|
call :startMap
|
|
|
|
|
call :startBrokk
|
|
|
|
|
call :startSindri
|
|
|
|
|
goto :EOF
|
|
|
|
|
|
|
|
|
|
:getStatus
|
|
|
|
@ -74,8 +66,6 @@ call :getLoginStatus
|
|
|
|
|
call :getCharStatus
|
|
|
|
|
call :getWebStatus
|
|
|
|
|
call :getMapStatus
|
|
|
|
|
call :getBrokkStatus
|
|
|
|
|
call :getSindriStatus
|
|
|
|
|
|
|
|
|
|
if "%login_running%" == "false" ( echo "login_serv is not running"
|
|
|
|
|
) else echo "login_serv is running pid=%LoginServPID%"
|
|
|
|
@ -85,11 +75,6 @@ if "%web_running%" == "false" ( echo "web_serv is not running"
|
|
|
|
|
) else echo "web_serv is running pid=%WebServPID%"
|
|
|
|
|
if "%map_running%" == "false" ( echo "map_serv is not running"
|
|
|
|
|
) else echo "map_serv is running pid=%MapServPID%"
|
|
|
|
|
if "%brokk_running%" == "false" ( echo "brokk_serv is not running"
|
|
|
|
|
) else echo "brokk_serv is running pid=%BrokkServPID%"
|
|
|
|
|
if "%sindri_running%" == "false" ( echo "sindri_serv is not running"
|
|
|
|
|
) else echo "sindri_serv is running pid=%SindriServPID%"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
goto :EOF
|
|
|
|
|
|
|
|
|
@ -119,15 +104,6 @@ goto :EOF
|
|
|
|
|
call :getMapStatus
|
|
|
|
|
if "%map_running%" == "true" Taskkill /PID %MapServPID% /F
|
|
|
|
|
goto :EOF
|
|
|
|
|
:stopBrokk
|
|
|
|
|
call :getBrokkStatus
|
|
|
|
|
if "%brokk_running%" == "true" Taskkill /PID %BrokkServPID% /F
|
|
|
|
|
goto :EOF
|
|
|
|
|
:stopSindri
|
|
|
|
|
call :getSindriStatus
|
|
|
|
|
if "%sindri_running%" == "true" Taskkill /PID %SindriServPID% /F
|
|
|
|
|
goto :EOF
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
REM start sub targets
|
|
|
|
|
:startLogin
|
|
|
|
@ -153,17 +129,6 @@ call :getMapStatus
|
|
|
|
|
if "%map_running%" == "false" ( start cmd /k mapserv.bat %restart_mode%
|
|
|
|
|
) else echo "Map serv is already running, pid=%MapServPID%"
|
|
|
|
|
goto :EOF
|
|
|
|
|
:startBrokk
|
|
|
|
|
call :getBrokkStatus
|
|
|
|
|
if "%brokk_running%" == "false" ( start cmd /k brokkserv.bat %restart_mode%
|
|
|
|
|
) else echo "Brokk serv is already running, pid=%BrokkServPID%"
|
|
|
|
|
goto :EOF
|
|
|
|
|
:startSindri
|
|
|
|
|
call :getMapStatus
|
|
|
|
|
if "%sindri_running%" == "false" ( start cmd /k sindriserv.bat %restart_mode%
|
|
|
|
|
) else echo "Sindri serv is already running, pid=%SindriServPID%"
|
|
|
|
|
goto :EOF
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
REM status sub targets
|
|
|
|
|
|
|
|
|
@ -186,13 +151,3 @@ goto :EOF
|
|
|
|
|
for /F "TOKENS=1,2,*" %%a in ('tasklist /FI "IMAGENAME eq map-server.exe"') do set MapServPID=%%b
|
|
|
|
|
echo(%MapServPID%|findstr "^[-][1-9][0-9]*$ ^[1-9][0-9]*$ ^0$">nul&& set "map_running=true" || set "map_running=false"
|
|
|
|
|
goto :EOF
|
|
|
|
|
|
|
|
|
|
:getBrokkStatus
|
|
|
|
|
for /F "TOKENS=1,2,*" %%a in ('tasklist /FI "IMAGENAME eq brokk-server.exe"') do set BrokkServPID=%%b
|
|
|
|
|
echo(%BrokkServPID%|findstr "^[-][1-9][0-9]*$ ^[1-9][0-9]*$ ^0$">nul&& set "brokk_running=true" || set "brokk_running=false"
|
|
|
|
|
goto :EOF
|
|
|
|
|
|
|
|
|
|
:getSindriStatus
|
|
|
|
|
for /F "TOKENS=1,2,*" %%a in ('tasklist /FI "IMAGENAME eq sindri-server.exe"') do set SindriServPID=%%b
|
|
|
|
|
echo(%SindriServPID%|findstr "^[-][1-9][0-9]*$ ^[1-9][0-9]*$ ^0$">nul&& set "sindri_running=true" || set "sindri_running=false"
|
|
|
|
|
goto :EOF
|