Hi,
I'm relatively new to god, but I've been able to set it up mostly
right.
On issue I haven't been able to fix, is for this watch:
God.watch do |w|
w.dir = 'some dir'
w.name = 'rapns'
w.group = 'some app'
w.interval = 30.seconds
w.pid_file = "some pid.pid"
w.gid = 'user'
w.uid = 'group'
w.start = "bundle exec rapns production --foreground >
somelog.log"
w.log = "some path/god.log"
end
Why the --foreground switch and the output redirection you ask? Well,
I've tested several approaches, and none of them write to the log.
With just "bundle exec rapns production", the god.log file does get
written, but only *after* I kill the rapns process. With the method I
show, it's the same, but for the somelog.log file.
Is this an issue with the rapns process or is there something I'm
doing all wrong?
Thanks!
- Ivan