[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#727708: upstart proposed policy in Debian



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                                       [cjwatson@debian.org]


Reply to: