Thanks.
Just mentioning then:
AFAIK, my system uses systemd
and node-red auto-starts.
I got an exec
node and put that trick in with my real password.
Connected an inject
node to the exec
node, and pressed it.
Node-red stopped.
Well, I got a message at the top of my screen: Lost connection to server
.
So I guess it stopped.
[{"id":"260ff9050f0901f0","type":"exec","z":"0918ee609bf69fc7","command":"echo \"my real password\" | sudo -S node-red-stop","addpay":"","append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"","x":470,"y":3660,"wires":[[],[],[]]},{"id":"6f621bb4c69c4357","type":"inject","z":"0918ee609bf69fc7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":170,"y":3660,"wires":[["260ff9050f0901f0"]]}]