Discussion:
[Supervisor-users] Send SIGUSR1 before killing?
Jean Jordaan
2014-09-01 15:39:47 UTC
Permalink
Hi all

I'd like to send SIGUSR1 to a process before killing it.
When Zope receives SIGUSR1, it dumps stack traces of active threads to stdout.
When e.g. httpok kills a busy instance, I'd like to see what was
keeping it busy.
Does anyone have a way to do this using supervisord or superlance?

Regards,
--
jean . .. .... //\\\oo///\\
Jean Jordaan
2014-09-01 15:55:46 UTC
Permalink
Post by Jean Jordaan
I'd like to send SIGUSR1 to a process before killing it.
Ah, I see supervisor has just grown a `signalProcess` RPC method ...
httpok should be able to use that.

So my question changes: how should I modify httpok to send the signal?
Should it take an optional list of signals to send before going in for the kill?

For personal use I can hack httpok, but it would be better if I can
produce a pull request.
--
jean . .. .... //\\\oo///\\
Loading...