Last active
October 23, 2018 22:03
-
-
Save jgwill/5d4f5e9e223e4943b911879941ed4716 to your computer and use it in GitHub Desktop.
@stcgoal Starts a NodeJS Server when System Boot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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