Skip to content

Instantly share code, notes, and snippets.

@syxc
Forked from bengourley/site.siteName-state
Created June 4, 2013 05:06
Show Gist options
  • Save syxc/5703713 to your computer and use it in GitHub Desktop.
Save syxc/5703713 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