diff --git a/utility/daemon/README.md b/utility/daemon/README.md index 2e67a391..2c46037b 100644 --- a/utility/daemon/README.md +++ b/utility/daemon/README.md @@ -31,8 +31,13 @@ The command provides 3 outputs... stdout, stderr, and return code, from the runn If the called program stops (i.e. a return code is produced), this node can attempt to restart the command automatically. -**Note :** when you stop Node-RED running we may not get a chance to kill the -called program so it may remain running. You may have to kill it manually. +Setting `msg.kill` to a signal name (e.g. SIGINT, SIGHUP) will stop the process - but if the restart flag is set it will then auto restart. + +Sending `msg.start` will also re-start the process. + +**Note:** Some applications will automatically buffer lines of output. It is advisable to turn off this behaviour. +For example, if running a Python app, the `-u` parameter will stop the output being buffered. + For example it can be used to run and then monitor the dump1090 plane diff --git a/utility/daemon/daemon.html b/utility/daemon/daemon.html index f9e1547d..6e7a5d8d 100644 --- a/utility/daemon/daemon.html +++ b/utility/daemon/daemon.html @@ -40,9 +40,10 @@
Calls out to a long running system command. Sends msg.payload
to stdin of the process.
Provides 3 outputs... stdout, stderr, and return code , from the running command.
If the called program stops (i.e. a return code is produced), this node can attempt to restart the command.
-Note : when you stop Node-RED running we may not get a chance to kill the called program so it may remain - running. You may have to kill it manually.
-If running a Python app you may need to use the -u
parameter to stop the output being buffered.
Setting msg.kill
to a signal name (e.g. SIGINT, SIGHUP) will stop the process - but if the
+ restart flag is set it will then auto restart. Sending msg.start
will also re-start the process.
Note: Some applications will automatically buffer lines of output. It is advisable to turn off this behaviour.
+ For example, if running a Python app, the -u
parameter will stop the output being buffered.