Skip to content

Instantly share code, notes, and snippets.

@jgwill
Last active October 23, 2018 22:03
Show Gist options
  • Save jgwill/5d4f5e9e223e4943b911879941ed4716 to your computer and use it in GitHub Desktop.
Save jgwill/5d4f5e9e223e4943b911879941ed4716 to your computer and use it in GitHub Desktop.
@stcgoal Starts a NodeJS Server when System Boot
#!/bin/bash
# @v Start Node server when system boot
# Starts the node ChatServer when system boot up
# ADD THIS : su pi -c 'node /www/chatserver/index.js < /dev/null &'
# TO: /etc/rc.local
echo "su pi -c 'node /www/chatserver/index.js < /dev/null &'" >> /etc/rc.local
# Make sure it is before the exit 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment