public
anonymous / gist:4272083
Created

Example upstart script we're using in production for a node service.

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.