Fetcher/god script not working

I’m trying to get a god script going to monitor a mail fetcher as outlined in Advanced rails recipse and mms2r peepcode. My script is:

RAILS_ROOT = “/Users/foobar/some-app” God.watch do |w|

FETCHER_SCRIPT = “#{RAILS_ROOT}/script/mail_fetcher” w.name = “fetcher-daemon” w.interval = 30.seconds # default
w.start = “#{FETCHER_SCRIPT} start”

w.stop = “#{FETCHER_SCRIPT} stop” w.restart = “#{FETCHER_SCRIPT} restart” w.start_grace = 10.seconds w.restart_grace = 10.seconds w.pid_file = File.join(RAILS_ROOT, ‘log’, ‘MailFetcherDaemon.pid’)



Starting god with this script I see: I [2008-09-17 15:54:45] INFO: fetcher-daemon move ‘unmonitored’ to ‘up’ I [2008-09-17 15:54:45] INFO: fetcher-daemon moved ‘unmonitored’ to ‘up’

The fetcher script, however, does not get started. If I start it first, start god, kill the script, it also doesnt get started.