Skip to content

Instantly share code, notes, and snippets.

@matthutchinson
Last active August 29, 2015 14:02
Show Gist options
  • Save matthutchinson/37f19993b3e98b8bce2e to your computer and use it in GitHub Desktop.
Save matthutchinson/37f19993b3e98b8bce2e to your computer and use it in GitHub Desktop.
upstart conf for bluepill app management including global env vars on launch (/etc/init/pmfaqtory-store.conf)
# upstart for bluepill daemon and store app
# use with config/bluepill.pill
description "pmFAQtory store"
start on runlevel [2]
stop on runlevel [016]
exec su -c "$(tr "\n" " " < /etc/environment) bluepill load /var/www/pmfaqtory-store/current/config/bluepill.pill"
pre-stop exec bluepill stop
expect daemon
respawn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment