Page 1 of 1

node-red at startup

Posted: Fri Dec 15, 2017 3:07 pm
by paolojo
Hi,
I would start node-red at the boot of my raspy pi3.
I've tried the following command:
udo systemctl enable nodered.service
but it doesn't work.
Someone can help me?
Thank in advance

Paolo

Re: node-red at startup

Posted: Fri Dec 15, 2017 4:19 pm
by topguy
paolojo wrote:
Fri Dec 15, 2017 3:07 pm
Hi,
I would start node-red at the boot of my raspy pi3.
I've tried the following command:
udo systemctl enable nodered.service
but it doesn't work.
Someone can help me?
Thank in advance

Paolo
I assume you meant "sudo" not "udo" ?
If you only "enabled" it then its not started until next boot or until you do "sudo systemctl start nodered.service.

Re: node-red at startup

Posted: Fri Dec 15, 2017 4:26 pm
by paolojo
Yes!
Sorry, I meant "sudo". But unfortunately, it doesn't work at the next boot

Re: node-red at startup

Posted: Fri Dec 15, 2017 5:28 pm
by DirkS
Can you post the full output of

Code: Select all

sudo systemctl status nodered

Re: node-red at startup

Posted: Sat Mar 31, 2018 9:55 pm
by thr
I too have written some nodered code that I would like to auto start when Pi boots.

How do we do this?




FYI my overall plan is to run my Pi in kiosk mode, displaying a nodered dashboard. To do this I need to auto start nodered when my Pi boots.j

Re: node-red at startup

Posted: Sun Apr 01, 2018 8:36 pm
by thr
Bump.

I would like to know how to start nodered on startup.

My plan is to boot my Pi to kiosk mode and open a browser that will display a nodered dashboard, with the nodered app running on my Pi in the background.

Re: node-red at startup

Posted: Sun Apr 01, 2018 9:10 pm
by topguy
The question asked by DirkS needs answering.
We need to know the status of the node-red service.

Re: node-red at startup

Posted: Sun Apr 01, 2018 9:58 pm
by mattmiller
I've got a old 8.0 Jessie install (PiZero o vanilla - only had a single python prog on it) that I upgraded to v0.18.4 that I updated yesterday using the curl script here
https://nodered.org/docs/hardware/raspberrypi

to change from python prog to a node-RED one

It was all working fine so to check out your problem I did

Code: Select all

sudo systemctl enable nodered.service
then

Code: Select all

sudo systemctl start nodered.service
and tested it was working

then I rebooted and its automatically loaded following reboot