Created
March 17, 2014 22:29
-
-
Save kixorz/9609705 to your computer and use it in GitHub Desktop.
Node.js Upstart script template
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
#!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