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. -- Colin Watson [cjwat...@debian.org] -- To UNSUBSCRIBE, email to debian-ctte-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20131219011910.ga18...@riva.ucam.org