Create a gist now

Instantly share code, notes, and snippets.

anonymous /gist:4272083
Created Dec 12, 2012

What would you like to do?
Example upstart script we're using in production for a node service.
description "Starts iseentit."
author "David Banham"
start on (local-filesystems and net-device-up IFACE=eth0)
stop on shutdown
# Automatically Respawn:
respawn limit 20 5
# Not sure why $HOME is needed, but we found that it is:
export HOME="/home/iseentit"
cd /opt/iseentit
sudo -u iseentit NODE_ENV=production node /opt/iseentit/wrapper.js >> /var/log/iseentit.log 2>&1
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment