Skip to content

Instantly share code, notes, and snippets.

@jmoberly
Created November 14, 2016 20:18
Show Gist options
  • Save jmoberly/219a8befe1a673dce6a0b77278483f02 to your computer and use it in GitHub Desktop.
Save jmoberly/219a8befe1a673dce6a0b77278483f02 to your computer and use it in GitHub Desktop.
Basic upstart config to launch app on boot
#Web app upstart script
description "start and stop web app"
start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [016]
respawn
respawn limit 5 30
console output
chdir /usr/local/bin
exec ./my_app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment