adding autorestart

This commit is contained in:
Martin Karkowski 2021-07-28 15:35:40 +02:00
parent e5c96d48ec
commit 79a3512753
2 changed files with 12 additions and 2 deletions

View File

@ -21,7 +21,12 @@ const Service = require("node-windows").Service;
const svc = new Service({
name: "NoPE - Local IO-Server",
description: "Starts a local Nope-IO-Server",
script: require("path").join(__dirname, "ioServer.js")
script: require("path").join(__dirname, "ioServer.js"),
// Make shure the Service Restarts over and over if it fails
wait: 2,
// We add an additional delay. Eachtime we add 0.25% of the
// wait time.
grow: 0.25
});
const Logger = require("js-logger");
const colors = {

View File

@ -21,7 +21,12 @@ const Service = require("node-windows").Service;
const svc = new Service({
name: "NoPE - Local {{name}}",
description: "Starts a NOPE-Service for {{name}}",
script: require("path").join(__dirname, "index.js")
script: require("path").join(__dirname, "index.js"),
// Make shure the Service Restarts over and over if it fails
wait: 2,
// We add an additional delay. Eachtime we add 0.25% of the
// wait time.
grow: 0.25
});
const Logger = require("js-logger");
const colors = {