On Thu, Dec 19, 2013 at 01:19:10AM +0000, Colin Watson wrote: > On Sat, Dec 14, 2013 at 08:28:25PM +0000, Ian Jackson wrote: > > Ian Jackson writes ("upstart proposed policy in Debian"): > > > Having read the docs there I have some apparently unanswered questions > > > about how the upstart proponents think we would use upstart in Debian.
> > I found policy 9.11.1 which I had unaccountably failed to notice > > before. It answer the question of how to do the transition from > > sysvinit to upstart, with a hideous shell rune. Perhaps the upstart > > package could provide a cooked command and then we could all say > > if init-is-upstart 2>/dev/null; then exit 1; fi > > or something. > There's an init_is_upstart shell function in /lib/lsb/init-functions > (which is generally already sourced by SysV init scripts); it amounts to > the rune in policy 9.11.1. I'm not sure why policy hasn't been updated > to refer to it, although > https://wiki.ubuntu.com/UpstartCompatibleInitScripts does. Primarily because policy tends to document the more fundamental interfaces, not optional libraries. If we're happy with policy recommending interfaces that are only present in /lib/lsb/init-functions, it's an easy change. It's also been suggested that instead of requiring modification of the init scripts at all, this logic should be provided by the upstart package in a /lib/lsb/init-functions.d/ fragment that automatically DTRT. The two options here seem to be a question of personal preference; I'm happy for upstart to implement this via /lib/lsb/init-functions.d/ if that's seen as the preferable approach. At the time https://wiki.ubuntu.com/UpstartCompatibleInitScripts was drafted, I wasn't aware that init-functions hooks were supported, so assumed that a central implementation would carry a performance penalty for users who weren't running upstart and thought that might be impolite. -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developer http://www.debian.org/ slanga...@ubuntu.com vor...@debian.org
signature.asc
Description: Digital signature