Question

Can't get Node Red to run on startup

I have followed the instructions at:

https://www.digitalocean.com/community/tutorials/how-to-connect-your-internet-of-things-with-node-red-on-ubuntu-16-04

Node Red runs OK when I start it manually but I can’t get it to run on startup like the instructions say it should. Any suggestions?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Yes, removing the /local/ from the ExecStart command fixed the problem. Thanks so much for your help.

whereis node-red responded with: node-red: /usr/bin/node-red

When I try the command /usr/local/bin/node-red-pi --max-old-space-size=128 -v I get the following error:

-bash: /usr/local/bin/node-red-pi: No such file or directory

I can run it with just the command: node-red

But node red then stops as soon as I close out the terminal window. I am fairly new to Linux so forgive any ignorance of something simple.