From c835fe7cadf9ca491f4cbc5974e523d3c8d8ec09 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Wed, 24 Oct 2018 21:54:13 +0100 Subject: [PATCH] fix daemon node autorun to close #494 --- utility/daemon/daemon.js | 2 +- utility/daemon/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/utility/daemon/daemon.js b/utility/daemon/daemon.js index 97568c7d..f1b51183 100644 --- a/utility/daemon/daemon.js +++ b/utility/daemon/daemon.js @@ -130,7 +130,7 @@ module.exports = function(RED) { node.status({}); }); - runit(); + if (this.autorun) { runit(); } node.on("input", inputlistener); } diff --git a/utility/daemon/package.json b/utility/daemon/package.json index a45c56c0..5cf833b4 100644 --- a/utility/daemon/package.json +++ b/utility/daemon/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-daemon", - "version" : "0.0.22", + "version" : "0.0.23", "description" : "A Node-RED node that runs and monitors a long running system command.", "dependencies" : { },