Skip to content

Instantly share code, notes, and snippets.

@eladmeidar
Created September 26, 2016 09:01
Show Gist options
  • Save eladmeidar/a41b938efcf1e7c78f15752e64cd3f42 to your computer and use it in GitHub Desktop.
Save eladmeidar/a41b938efcf1e7c78f15752e64cd3f42 to your computer and use it in GitHub Desktop.
check process thin-3000 with pidfile /var/www/html/redmine2/current/tmp/pids/thin.3000.pid
start program = "cd /var/www/html/redmine2/current && /usr/local/rvm/bin/rvm default do bundle exec thin start -C /var/www/html/redmine2/current/config/thin/performance.yml"
stop program = "cd /var/www/html/redmine2/current && /usr/local/rvm/bin/rvm default do bundle exec thin stop -C /var/www/html/redmine2/current/config/thin/performance.yml"
if 3 restarts within 5 cycles then timeout
if totalmem is greater than 400.0 MB for 2 cycles then restart
group thin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment