Re: s6-supervise: use of nosetsid

2020-12-03 Thread Casper Ti. Vector
On Thu, Dec 03, 2020 at 05:21:44PM +, Laurent Bercot wrote: > https://github.com/dubiousjim/dcron/blob/master/main.c#L272 Thanks for the explanation; I will report it to the upstream. -- My current OpenPGP key: RSA4096/0x227E8CAAB7AA186C (expires: 2022.09.20) 7077 7781 B859 5166 AE07 0286

Re: s6-supervise: use of nosetsid

2020-12-03 Thread Laurent Bercot
It seems I missed the addition of s6-svscan's -X option; I saw it one day in the output of 'ps' on a VM that was using s6-linux-init, didn't recognize it, but then forgot to look up what it did :P But I would have to 'tag' messages in some way, so that the catch-all logger recognizes them and

Re: s6-supervise: use of nosetsid

2020-12-03 Thread Guillermo
El jue, 3 dic 2020 a las 18:34, Laurent Bercot escribió: > > So, can you juggle fds to avoid nosetsid, or can't you do the same > thing without it? This particular use of nosetsid can probably be implemented in some other way. I did think about having supervision tree processes inherit a FD for

Re: s6-supervise: use of nosetsid

2020-12-03 Thread Laurent Bercot
I remember occasionally using 'nosetsid' files for the convenience of being able to redirect the output of 'run' and 'finish' to /dev/tty (the controlling terminal of the shell I used to run s6-svscan) so that I could see certain messages during tests in which s6-svscan had its stdout & stderr

Re: s6-supervise: use of nosetsid

2020-12-03 Thread eric vidal
On Thu, 03 Dec 2020 16:46:58 + "Laurent Bercot" wrote: > > Hello, > > The next version of s6 will be a major bump, with a few long-awaited > QoL changes - mainly a thorough cleanup of how s6-svscan handles > signals and the various commands sent by s6-svscanctl, but also some > goodies

Re: s6-supervise: use of nosetsid

2020-12-03 Thread Guillermo
El jue, 3 dic 2020 a las 13:47, Laurent Bercot escribió: > > I have previously added the "nosetsid" feature to s6-supervise, to > address the issue: [...]. So when people want to manually > test a supervision tree, they can have nosetsid files in their test > service directories, and ^C will

Re: s6-supervise: use of nosetsid

2020-12-03 Thread Steve Litt
On Thu, 03 Dec 2020 16:46:58 + "Laurent Bercot" wrote: > Hello, > > The next version of s6 will be a major bump, with a few long-awaited > QoL changes - mainly a thorough cleanup of how s6-svscan handles > signals and the various commands sent by s6-svscanctl, but also some > goodies

Re: s6-supervise: use of nosetsid

2020-12-03 Thread Laurent Bercot
dcron crashes without it, which is why [1] exists. The log says `setpgid: Operation not permitted'. I have not investigated further. The problem happens here: https://github.com/dubiousjim/dcron/blob/master/main.c#L272 dcron assumes that it's not a session leader when run in the

Re: s6-supervise: use of nosetsid

2020-12-03 Thread Casper Ti. Vector
On Thu, Dec 03, 2020 at 04:46:58PM +, Laurent Bercot wrote: > Hence, my question to users: do you have a *valid* reason to use > nosetsid files in your service directories? Are there use cases for > nosetsid that I have not thought about, and that would make using s6 > impractical if the

s6-supervise: use of nosetsid

2020-12-03 Thread Laurent Bercot
Hello, The next version of s6 will be a major bump, with a few long-awaited QoL changes - mainly a thorough cleanup of how s6-svscan handles signals and the various commands sent by s6-svscanctl, but also some goodies that you should like. :) One issue that has been often reported by users