Re: Customise shutdown signal at the s6-rc level?

2017-05-02 Thread Van Bemten, Lionel (Nokia - BE/Antwerp)
> Doesn't > >svc -wD -T1000 servicedir || svc -k servicedir > > do what you want for the "hangup problem" ? Problem is that you can't trigger that from s6-rc. Lionel

Re: Customise shutdown signal at the s6-rc level?

2017-05-02 Thread Joan Picanyol i Puig
* Casper Ti. Vector [20170502 12:48]: > On Tue, May 02, 2017 at 08:51:19AM +, Laurent Bercot wrote: > > If I were to work on a more official, better integrated solution, I would > > do it at the s6-supervise level. I would not implement custom control > > scripts,

Re: Customise shutdown signal at the s6-rc level?

2017-05-02 Thread Casper Ti. Vector
On Tue, May 02, 2017 at 08:51:19AM +, Laurent Bercot wrote: > If I were to work on a more official, better integrated solution, I would > do it at the s6-supervise level. I would not implement custom control > scripts, for the reasons indicated in the above link, but it would > probably be

Re: Customise shutdown signal at the s6-rc level?

2017-05-02 Thread Laurent Bercot
What I would like to have is "s6-rc -d change foo" sending SIGTERM and then SIGKILL if the service is not down after x seconds. Currently If a daemon hangs it has annoying side effects. If I don't put a timeout on the s6-rc command the state machine is blocked, and I cannot shut down the system

Re: Customise shutdown signal at the s6-rc level?

2017-05-02 Thread Van Bemten, Lionel (Nokia - BE/Antwerp)
karnet.org <supervision@list.skarnet.org> on behalf of Laurent Bercot <ska-supervis...@skarnet.org> Sent: Tuesday, May 2, 2017 10:51:19 AM To: supervision@list.skarnet.org Subject: Re: Customise shutdown signal at the s6-rc level? >[1] Damn ezmlm-cgi bug, this time it trig

Re: Customise shutdown signal at the s6-rc level?

2017-05-02 Thread Laurent Bercot
[1] Damn ezmlm-cgi bug, this time it triggered without an accented character. Sorry about that :( Here's the URL to the full message: https://www.mail-archive.com/supervision@list.skarnet.org/msg01427.html About customizing shutdown signals in s6-rc: how do you suggest it should be done?