Skip to content

Instantly share code, notes, and snippets.

@astropanic
Created February 18, 2014 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save astropanic/9073403 to your computer and use it in GitHub Desktop.
Save astropanic/9073403 to your computer and use it in GitHub Desktop.
monit
check process puma with pidfile /daten/appsse/production/current/tmp/pids/puma.sock
start program = "/usr/bin/env bash -c 'export HOME="/daten/appsse/" && source /daten/appsse/.rvm/environments/default && cd /daten/appsse/production/current && bundle exec puma -C config/puma/config.rb' as uid appsse and gid web
stop program = "/usr/bin/env bash -c 'export HOME="/daten/appsse/" && source /daten/appsse/.rvm/environments/default && cd /daten/appsse/production/current && bundle exec pumactl -S tmp/pids/puma.state stop' as uid appsse and gid web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment