Open rtyler opened 10 years ago
We just encountered similar behavior too, but more importantly, respawning on FreeBSD appears broken ( #210 )
Workaround: god stop; god terminate
(on god 0.13.5 / MRI 2.2.0 / FreeBSD 10.1-RELEASE-p4)
Seems to Do The Right Thing :tm:
When I manage god via an init script (as discussed in this post), I run into kind of an 'opposite' problem. In my case, god fails to exit all sub-processes (watches), but successfully shuts itself down (after a 10-second timeout).
Calling god terminate
just doesn't cut it. god stop; god terminate
comes to the rescue. Thanks @steakknife for pointing this out!
Np. I donkey-punched God somewhere in a commit in foreman_god upstream to 'make it just work'TM. You can try to add that extra bit (a '<<' one-liner), if you can apply patches. Mod downside: if God dies, it might nondetermisitically take your $$$ shopping cart or triple-secret hft strats to hell (which, I hear, is very nice this time of year) with it. Use-case
On Wednesday, September 16, 2015, Khang Dinh notifications@github.com wrote:
When I manage god via an init script (as discussed in this post http://www.synbioz.com/blog/monitoring_server_processes_with_god), I run into kind of an 'opposite' problem. In my case, god fails to exit all sub-processes (watches), but successfully shuts itself down (after a 10-second timeout).
Calling god terminate just doesn't cut it. god stop; god terminate comes to the rescue. Thanks @steakknife https://github.com/steakknife for pointing this out!
— Reply to this email directly or view it on GitHub https://github.com/mojombo/god/issues/158#issuecomment-140951336.
I'm running FreeBSD 10.0-STABLE with God 0.13.3 and I'm unable to cleanly invoke
terminate
.The behavior is that
god terminate
hangs,god
itself shuts down the sub-processes but then fails to exit itself.I've been able to run and terminate God from the source tree with bundler using:
This unfortunately doesn't make much sense to me. I've spent at least a day trying to debug and code-spelunk and nothing has come of it.
The
god terminate
process has the following backtrace when I interrupt it:I've also added some code to dump all the currently running threads every 10 seconds, which gives me:
uname -a
spits out:FreeBSD mango 10.0-STABLE FreeBSD 10.0-STABLE #9 r261719: Mon Feb 10 16:28:30 PST 2014 root@mango:/usr/obj/usr/src/sys/GENERIC amd64
(fwiw)