Skip to content

Instantly share code, notes, and snippets.

@johndel
Created October 3, 2014 14:59
Show Gist options
  • Save johndel/e5f6cb30da724396b7c3 to your computer and use it in GitHub Desktop.
Save johndel/e5f6cb30da724396b7c3 to your computer and use it in GitHub Desktop.
unicorn conf for monit
check process your_project_unicorn
with pidfile /your_project_unicorn/current/tmp/pids/unicorn.pid
start program = "/bin/bash -l -c 'cd /your_project_unicorn/current && bundle exec unicorn -E staging -c /your_project_unicorn/current/config/unicorn.rb -D'"
stop program = "/bin/bash -l -c kill -QUIT `cat /your_project_unicorn/current/tmp/pids/unicorn.pid`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment