adding autorestart
This commit is contained in:
parent
e5c96d48ec
commit
79a3512753
@ -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 = {
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user