Make shure the service is started

This commit is contained in:
Martin Karkowski 2021-07-29 15:49:57 +02:00
parent 2ef59e812d
commit 35a75dfc3f
2 changed files with 8 additions and 0 deletions

View File

@ -53,6 +53,7 @@ node .\dist\modules\wamo\cli\generateConfig.js
@REM create the new services
node .\dist\lib\cli\createService.js --noFuncs --runInstances --runEveryService --runExtra --layer io-client --log info
node .\dist\lib\cli\ioServerService.js -m install
node .\dist\lib\cli\ioServerService.js -m start
@REM now reinstall the services

View File

@ -97,6 +97,13 @@ switch (parser.parseArgs().mode) {
svc.start();
logger.info("ioServer installed and started");
});
svc.on("start", function () {
logger.info("ioServer started");
});
svc.on("alreadyinstalled", function () {
svc.start();
logger.info("ioServer installed and started");
});
svc.install();
break;