Skip to content

Instantly share code, notes, and snippets.

@kixorz
Created March 17, 2014 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kixorz/9609705 to your computer and use it in GitHub Desktop.
Save kixorz/9609705 to your computer and use it in GitHub Desktop.
Node.js Upstart script template
#!upstart
description "<project>"
author "<author>"
env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
respawn
start on runlevel [23]
script
export NODE_ENV=<environment>
chdir <working directory>
exec /usr/bin/node app.js 2>&1 >> <logfile path>
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment