Forum: Rails deployment Monitoring daemon in monitrc

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Neil C. (Guest)
on 2009-04-27 14:47
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
This topic is locked and can not be replied to.