Adding restarter
This commit is contained in:
parent
edabfd52b2
commit
934a503a1b
18
00-restart-all-services.bat
Normal file
18
00-restart-all-services.bat
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
set DIR=%~dp0
|
||||||
|
cd "%DIR%"
|
||||||
|
|
||||||
|
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
|
||||||
|
|
||||||
|
%@Try%
|
||||||
|
@REM Uninstall IO-Server
|
||||||
|
node .\dist\lib\cli\ioServerService.js -m restart
|
||||||
|
%@EndTry%
|
||||||
|
:@Catch
|
||||||
|
echo restarted IO-Server
|
||||||
|
:@EndCatch
|
||||||
|
|
||||||
|
@REM Uninstall all Services
|
||||||
|
for /f "delims=" %%a in ('dir /s /o /b *02-restart.bat') do (
|
||||||
|
echo %%a
|
||||||
|
call %%a
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user