Hello. I read the documentation and a bit confused about sending email when proccess will stop by itself. Is it possible without sudo permissions?
I want to something like this: God::Contacts::Email.defaults do |d| d.from_email = '[email protected]' d.from_name = 'God' d.delivery_method = :sendmail end God.contact(:email) do |c| c.name = 'me' c.group = 'developers' c.to_email = '[email protected]' end God.watch do |w| w.dir = '/home/abonec/god' w.name = "simple" w.start = "ruby simple.rb" w.keepalive w.transition(:up, :start) do |on| on.condition(:process_exits) do |c| c.notify = 'me' end end end I mean when process will crash I want to god just send me email and restart it. And if process will exit with normal code (exit 0) send me email as well (great if it other message text or subject). -- You received this message because you are subscribed to the Google Groups "god.rb" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/god-rb. For more options, visit https://groups.google.com/groups/opt_out.
