I have to run a Node.js application while reboot in Raspberry Pi.The application uses WiFi and BLE on-board of Raspberry Pi.

I have tried out the below solutions:

1.Copied my Node.js application in the rc.local with full path.

cd path filename.js < /dev/null &

But it still didn't work.
Ref link :(How to run a script (Node.js) at startup)


1 Answer 1


I've had this issue as well. What I finally had to do was create a script that starts the node.js application, and call that from rc.local.

myscript.sh #!/bin/bash cd application path node application.js

Then in rc.local, call myscript.sh with the full path.

  • how do you exactly 'call myscrip.sh' in the rc.local file? What do you type?
    – Sora
    Jan 22, 2020 at 5:36

Not the answer you're looking for? Browse other questions tagged or ask your own question.