Skip to content

Instantly share code, notes, and snippets.

@arian
Created October 9, 2012 22:16
Show Gist options
  • Save arian/3861795 to your computer and use it in GitHub Desktop.
Save arian/3861795 to your computer and use it in GitHub Desktop.
UpStart conf
# 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
$ 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