Skip to content

Instantly share code, notes, and snippets.

@eladmeidar
Created September 26, 2016 09:01
Show Gist options
  • Save eladmeidar/940e13252f87e8ff95200a5546b9883d to your computer and use it in GitHub Desktop.
Save eladmeidar/940e13252f87e8ff95200a5546b9883d 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