Autostart node-red script - how to stop?

7,587 views
Skip to first unread message

Phil Grant

unread,
May 21, 2015, 3:24:40 PM5/21/15
to node...@googlegroups.com
Hi,
I've got Node-red up and running, I've now got it auto starting on boot but for the life of me I can't figure out how to stop it??

I've used the startup scripby dceejay (linux) from the Node-red page and it works but how do I stop node-red, I've tried nodered -stop and loads of other variations.
I'm sure it should be easy but I'm not familiar with Linux.
how do I stop, start and restart node-red?
Cheers
Phil

Nicholas O'Leary

unread,
May 21, 2015, 3:30:54 PM5/21/15
to Node-RED Mailing LIst
Assuming you mean this one: https://gist.github.com/bigmonkeyboy/9962293 and that you've saved it as /etc/init.d/nodered, then you should run:

    sudo /etc/init.d/nodered stop


Nick


--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hermann

unread,
May 21, 2015, 3:31:50 PM5/21/15
to node...@googlegroups.com
Hi Phil,

I am using the same script.
Try:  sudo service nodered stop

Should work.

Phil Grant

unread,
May 21, 2015, 3:35:46 PM5/21/15
to node...@googlegroups.com
Thanks,

This is probably a linux'ism but I tried 'sudo nodered stop' when I was in the etc/init.d folder and it didn't work but when I typed the command with the full path it did the job ??

Thanks for the help

Phil Grant

unread,
May 21, 2015, 3:40:20 PM5/21/15
to node...@googlegroups.com
Thanks Hermann, yours worked as well.

Greg EVA

unread,
May 22, 2015, 9:52:27 AM5/22/15
to node...@googlegroups.com
Either you need to refer to the launch script directly (which you mentioned), or you use the service command to tell it to do something to a configured service.  This is the same sort of thing as in Windows with the "NET START service" or "SC START service" commands.
Reply all
Reply to author
Forward
0 new messages