Skip to content

Instantly share code, notes, and snippets.

View junos's full-sized avatar

Jun Li junos

  • Tortonto
View GitHub Profile
@junos
junos / puma.monitrc
Created April 11, 2017 21:31 — forked from sudara/puma.monitrc
Example config needed to use monit with puma, monitoring workers for mem.
# this monit config goes in /etc/monit/conf.d
check process puma_master
with pidfile /data/myapp/current/tmp/puma.pid
start program = "/etc/monit/scripts/puma start"
stop program = "/etc/monit/scripts/puma stop"
group myapp
check process puma_worker_0
with pidfile /data/myapp/current/tmp/puma_worker_0.pid