Created
December 12, 2012 22:07
-
-
Save anonymous/4272083 to your computer and use it in GitHub Desktop.
Example upstart script we're using in production for a node service.
This file contains 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
description "Starts iseentit." | |
author "David Banham david@pinion.gg" | |
start on (local-filesystems and net-device-up IFACE=eth0) | |
stop on shutdown | |
# Automatically Respawn: | |
respawn | |
respawn limit 20 5 | |
script | |
# 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