[{
"script" : "/usr/local/bin/node-red -p 1880",
"args" :"-p 1880", "name" : "node-red default"}]
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/2sboLs9ifjQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
For more options, visit https://groups.google.com/d/optout.
the Keymetrics site for PM2
Free version. One server.
I'm just experimenting on a dev box.
Thanks Dave I will also test that solution.
I the middle time - after a long evening I did test manually, maybe it can be helpful for somebody J
Just few things:
- inside the folder /lib/system/system copied the file nodered.service to nodeblue.service (so can continue with black, green and so on J)
- edited tis file and change exec line to:
ExecStart=/usr/bin/env node-blue -v -u /home/pi/.node-red -s settings_blue.js -p 1881 flows_blue.json
So have different config and flow
file for second instance.
Next folder to work was /usr/bin
Copied node-red-start, node-red-stop and node-red-log to *-blue ones, edited all them, changed messages (for fun) and important exec line to “sudo nodeblue start” also changed log to nodeblue
At the end (the same folder) copied node-red to node-blue – I’m not sure if that is important and needed (that’s why have ExecStart=/usr/bin/env node-blue in the nodeblue.service), here changed only one line “process.title = 'node-red';” to “process.title = 'node-blue';”
I wanted to see in the task list what I have:
root@raspberrypi:/usr/bin# ps axg | grep node-
16818 ? SNsl 12:48 node-red
20105 ? SNsl 0:13 node-blue
Possible that last change is not needed, so in the task list both processes will named “node-red”
Finally has
run: sudo systemctl enable
nodeblue.service to enable autostart also second “blue” instance
Now can run node-red-start and node-blue-start (same stop and log) and have two node instances, the only what can’t change is the tab tittle in browser for both instances (in edit mode) are “Node-RED”, I think that's not really important J.
That exactly what I needed, As result have working main process and second “blue” for testing.
Krzysztof