diff --git a/ReadMe-Raspberry-Pi---Advanced.md b/ReadMe-Raspberry-Pi---Advanced.md index be8b6c0..c1affcf 100644 --- a/ReadMe-Raspberry-Pi---Advanced.md +++ b/ReadMe-Raspberry-Pi---Advanced.md @@ -69,3 +69,13 @@ To get to the terminal type screen -r red type Ctrl-A-D to detach and leave it running + +## Making node-red run forever (on crash or reboot) + +The answer should be daemonise it which could be done as a mod to node-red or by using forever. + +Forever's ability to restart automatically would be useful, especially during development. + +I have tried to get forever working in a stable way on pi but have found it erratic. It did not always daemonise and started throwing stdout onto the console despite the -o or -a switch. I suspect version incompatibilities although npm does not complain. + +If anyone has been successful please update this. \ No newline at end of file