Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-30 Thread Steve Langasek
[Started drafting this before Ian forked the bug; sending to both bug reports now] On Fri, Dec 20, 2013 at 03:41:55PM -0800, Russ Allbery wrote: Ian Jackson ijack...@chiark.greenend.org.uk writes: Russ Allbery writes: I'd like to see both of them support systemd's method, since it's

Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-30 Thread Russ Allbery
Steve Langasek vor...@debian.org writes: The lowest-impact library dependency is still pretty large, from the perspective of the typical daemon upstream. Plenty of projects don't use autoconf. Some aren't written in C at all and would need bindings (or to reimplement the base logic

Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-29 Thread Tollef Fog Heen
]] Ian Jackson As the upstream author of a daemon I'm - not willing to add a library dependency for this - not willing to write a 50-100 lines of tiresome socket code for this - not willing to copy the library file into my source tree so the result is that userv upstream won't support

Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-22 Thread Andreas Barth
* Tollef Fog Heen (tfh...@err.no) [131221 13:57]: sd-daemon.c is also intentionally designed to not have dependencies on the rest of the systemd source and to be portable to non-linux architectures too (but basically just stubs then) just so people can put the file in their source and not have

Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-21 Thread Tollef Fog Heen
]] Russ Allbery Ian Jackson ijack...@chiark.greenend.org.uk writes: Russ Allbery writes: I'd like to see both of them support systemd's method, since it's extensible and provides more general functionality. I think the benefit of support for SIGSTOP is marginal; adding sd_notify

Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-21 Thread Russ Allbery
Tollef Fog Heen tfh...@err.no writes: sd-daemon.c is also intentionally designed to not have dependencies on the rest of the systemd source and to be portable to non-linux architectures too (but basically just stubs then) just so people can put the file in their source and not have to fiddle

Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-21 Thread Tollef Fog Heen
]] Russ Allbery Tollef Fog Heen tfh...@err.no writes: sd-daemon.c is also intentionally designed to not have dependencies on the rest of the systemd source and to be portable to non-linux architectures too (but basically just stubs then) just so people can put the file in their source

Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-21 Thread Uoti Urpala
On Sat, 2013-12-21 at 08:49 -0800, Russ Allbery wrote: Tollef Fog Heen tfh...@err.no writes: sd-daemon.c is also intentionally designed to not have dependencies on the rest of the systemd source and to be portable to non-linux architectures too (but basically just stubs then) just so people

Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-21 Thread Russ Allbery
Uoti Urpala uoti.urp...@pp1.inet.fi writes: BTW it's worth noting that in the typical daemon case where readiness means the listening socket is ready to accept requests, the right way to convert the daemon to a new API is to use socket activation, which removes the need for separate start-up

Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-20 Thread Andreas Barth
* Russ Allbery (r...@debian.org) [131219 04:09]: Ian Jackson ijack...@chiark.greenend.org.uk writes: systemd supports the non-forking daemon too. Only, instead of raise(SIGSTOP) the daemon has to fetch an AF_UNIX socket name from an environment variable, connect to it, and send a special

Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-20 Thread Russ Allbery
Andreas Barth a...@ayous.org writes: * Russ Allbery (r...@debian.org) [131219 04:09]: Ian Jackson ijack...@chiark.greenend.org.uk writes: systemd supports the non-forking daemon too. Only, instead of raise(SIGSTOP) the daemon has to fetch an AF_UNIX socket name from an environment variable,

Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-20 Thread Steve Langasek
On Fri, Dec 20, 2013 at 03:03:25PM -0800, Russ Allbery wrote: Andreas Barth a...@ayous.org writes: * Russ Allbery (r...@debian.org) [131219 04:09]: Ian Jackson ijack...@chiark.greenend.org.uk writes: systemd supports the non-forking daemon too. Only, instead of raise(SIGSTOP) the daemon

Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-20 Thread Ian Jackson
Russ Allbery writes (Bug#727708: upstart proposed policy in Debian [and 1 more messages]): I'd like to see both of them support systemd's method, since it's extensible and provides more general functionality. I think the benefit of support for SIGSTOP is marginal; adding sd_notify calls

Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-20 Thread Ian Jackson
Steve Langasek writes (Bug#727708: upstart proposed policy in Debian [and 1 more messages]): Of course if you disagree, and feel this is a point that's relevant to the TC decision, I'd like to understand why. I think it's relevant to the TC decision. Also relevant is the response from systemd

Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-20 Thread Andreas Barth
* Ian Jackson (ijack...@chiark.greenend.org.uk) [131221 00:33]: Steve Langasek writes (Bug#727708: upstart proposed policy in Debian [and 1 more messages]): Of course if you disagree, and feel this is a point that's relevant to the TC decision, I'd like to understand why. I think it's

Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-20 Thread Russ Allbery
Steve Langasek vor...@debian.org writes: But as Andi said, there's no real conceptual difference between the two approaches, and I don't see anything here that weighs in favor of one project over the other. Do you agree? No -- for me, this is a plus in the systemd column over upstart, and

Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-20 Thread Russ Allbery
Ian Jackson ijack...@chiark.greenend.org.uk writes: Russ Allbery writes: I'd like to see both of them support systemd's method, since it's extensible and provides more general functionality. I think the benefit of support for SIGSTOP is marginal; adding sd_notify calls is not that much

Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-20 Thread Russ Allbery
Andreas Barth a...@ayous.org writes: * Ian Jackson (ijack...@chiark.greenend.org.uk) [131221 00:33]: Also relevant is the response from systemd upstream to the request to support this protocol as an option. I found it unsatisfactory. You mean #732157 /

Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-20 Thread Russ Allbery
Russ Allbery r...@debian.org writes: Overall, I think the approach outlined in daemon(3) is more forward-looking and thoughtful upstart's more conservative approach, and I like the long-term vision. Sorry, that should have been daemon(7). -- Russ Allbery (r...@debian.org)

Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-20 Thread Ian Jackson
Andreas Barth writes (Bug#727708: upstart proposed policy in Debian [and 1 more messages]): However I think it is relevant if we could get an patch integrated to support the other protocol as well (means: not replacing the current protocol). Which might be a good thing anyways as both

Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-20 Thread Russ Allbery
Ian Jackson ijack...@chiark.greenend.org.uk writes: I don't see the merit in extensibility; or rather, I think that there is room in the world for a non-extensible but trivial protocol. (And there are other potential simple protocols which would be more extensible.) Well, the extensibility

Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-18 Thread Ian Jackson
Russ Allbery writes (Bug#727708: upstart proposed policy in Debian): Is there a more complete explanation of this somewhere? The cookbook is rather short on details. It's documented in upstart's init(5) under expect stop.

Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-18 Thread Russ Allbery
Ian Jackson ijack...@chiark.greenend.org.uk writes: No. It's in the context of daemons which are written (well, have been modified) _not_ to fork. They just run as children of the supervisor. It's a way for a daemon to signal that it is ready. Oh, I see, I misunderstood the context.

Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-18 Thread Russ Allbery
Ian Jackson ijack...@chiark.greenend.org.uk writes: Running daemons directly as children of the supervisor is not a new idea: inetd does it for network servers (although it gets the logging wrong) and Dan Bernstein's daemontools work this way too. Oh, and I should note that I've been using

Bug#727708: upstart proposed policy in Debian [and 1 more messages]

2013-12-18 Thread Tollef Fog Heen
]] Ian Jackson systemd supports the non-forking daemon too. Only, instead of raise(SIGSTOP) the daemon has to fetch an AF_UNIX socket name from an environment variable, connect to it, and send a special message with socket credentials attached. Note that this is only if you need socket