Monitoring daemon in monitrc

Would anyone know which is the correct start / stop monitrc
configuration for a daemon running on the ‘daemons’ gem (as seen in the
Custom Daemons Railscast)?

check process reminder_mailer
with pidfile /var/www/notipal/current/log/mailer.rb_monitor.pid

Option 1

start program = “/var/www/notipal/shared/scripts/mailer_worker.sh
start”
stop program = “/var/www/notipal/shared/scripts/mailer_worker.sh stop”

Option 2

#start program = “/var/www/notipal/current/lib/daemons/mailer_ctl
start”
#stop program = “/var/www/notipal/current/lib/daemons/mailer_ctl stop”
if totalmem is greater than 120 MB for 2 cycles then restart

http://pastie.org/private/w5w6wzypok3xnmuzcxdsw

The Railscast suggests it’s the mailer_ctl, but the last dev on this app
used mailer_worker.sh…

Thanks