Last active
August 29, 2015 14:02
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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