winsw: update bats

This commit is contained in:
Anton Suhorukov 2022-02-22 13:15:02 +03:00
parent 5c7e46b9ab
commit b8b23d266d
4 changed files with 13 additions and 18 deletions

View File

@ -3,16 +3,14 @@
PUSHD %~dp0..
call runasadmin.bat "%~dpnx0"
if %errorlevel% == 0 (
for /R "..\common\services\winswConfigs\" %%f in (*.xml) do (
call ..\thirdparty\winsw.exe restart %%f
)
)
POPD
if %errorlevel% == 0 (
pwsh %~dp0/command.ps1 "restart"
for /R "%~dp0\..\..\common\services\winswConfigs\" %%f in (*.xml) do (
call %~dp0\..\..\thirdparty\winsw.exe restart %%f
)
)
echo.

View File

@ -3,16 +3,15 @@
PUSHD %~dp0..
call runasadmin.bat "%~dpnx0"
if %errorlevel% == 0 (
for /R "..\common\services\winswConfigs\" %%f in (*.xml) do (
call ..\thirdparty\winsw.exe start %%f
)
)
POPD
if %errorlevel% == 0 (
pwsh %~dp0/command.ps1 "start"
for /R "%~dp0\..\..\common\services\winswConfigs\" %%f in (*.xml) do (
call %~dp0\..\..\thirdparty\winsw.exe start %%f
)
)
echo.

View File

@ -3,16 +3,14 @@
PUSHD %~dp0..
call runasadmin.bat "%~dpnx0"
if %errorlevel% == 0 (
for /R "..\common\services\winswConfigs\" %%f in (*.xml) do (
call ..\thirdparty\winsw.exe stop %%f
)
)
POPD
if %errorlevel% == 0 (
pwsh %~dp0/command.ps1 "stop"
for /R "%~dp0\..\..\common\services\winswConfigs\" %%f in (*.xml) do (
call %~dp0\..\..\thirdparty\winsw.exe stop %%f
)
)
echo.

View File

@ -5,7 +5,7 @@
<executable>node</executable>
<arguments>../../ASC.UrlShortener/index.js</arguments>
<log mode="roll-by-time">
<pattern>dd-MM</pattern>
<pattern>dd-MM</pattern>
</log>
<logpath>../../../Logs</logpath>
<delayedAutoStart>true</delayedAutoStart>