I just ran sudo systemctl enable nodered
for the first time and now I have both the files.
Thus, Node-RED should restart on server reboot.
Now I need to remove restarting command from the crontab file.
PS. Node-RED is running on Apache2 server Ubuntu 18.04
Yes. Run the script when logged in as the user that should run node-red.
Or you could just edit the systemd service file /lib/systemd/system/nodered.service
and change all references to root
to the user you want. So that is User, Group, Working directory, and environment file.
Then reboot.
Thanks for the explanation. I will do the modifications accordingly.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.