Created
August 11, 2012 00:30
-
-
Save sasha-id/3319337 to your computer and use it in GitHub Desktop.
bluepill upstart script as non-privileged user
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
# bluepill - process monitor | |
# | |
# simple process monitoring tool | |
description "bluepill: simple process monitoring tool" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
expect daemon | |
respawn | |
exec sudo -i -u USER -- sh -c 'cd /u/apps/PROJECT/current && RAILS_ENV=production bundle exec bluepill load /u/apps/PROJECT/current/config/bluepill.rb --no-privileged -c /u/apps/PROJECT/shared -l /u/apps/production/shared/log/bluepill.log' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment