Created
October 9, 2012 22:16
-
-
Save arian/3861795 to your computer and use it in GitHub Desktop.
UpStart conf
This file contains hidden or 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
# based on http://geeknme.wordpress.com/2009/10/15/getting-started-with-upstart-in-ubuntu/ | |
description "start and stop the nodejs server" | |
version "1.0" | |
author "Arian Stolwijk" | |
# tell upstart we're creating a daemon | |
# upstart manages PID creation for you. | |
expect fork | |
script | |
chdir /home/arian/project | |
exec node index.js & | |
end script |
This file contains hidden or 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
$ sudo service node start | |
$ sudo service node stop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment