raspberry pi start node js on boot code example
Example 1: running node js on raspberry pi
node index.js
Example 2: get raspberry pi to run node on startup
su pi -c 'node /home/pi/server.js < /dev/null &'
node index.js
su pi -c 'node /home/pi/server.js < /dev/null &'