Skip to content

Instantly share code, notes, and snippets.

@sasha-id
Created August 11, 2012 00:30
Show Gist options
  • Save sasha-id/3319337 to your computer and use it in GitHub Desktop.
Save sasha-id/3319337 to your computer and use it in GitHub Desktop.
bluepill upstart script as non-privileged user
# 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