Skip to content

Instantly share code, notes, and snippets.

@bengourley
Created April 11, 2011 15:28
Show Gist options
  • Save bengourley/913701 to your computer and use it in GitHub Desktop.
Save bengourley/913701 to your computer and use it in GitHub Desktop.
#!upstart
description "Sitename-state"
author "Ben Gourley"
start on (local-filesystems and net-device-up IFACE=eth0)
stop on shutdown
respawn # restart when job dies
respawn limit 5 60 # give up restart after 5 respawns in 60 seconds
script
exec node /var/w/state/Sitename/site/app >> /var/w/state/Sitename/site/logs/upstart.log 2>&1
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment