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

Re: Bug#545691: diverting telinit



On Fri, Oct 23, 2009 at 05:41:28PM -0500, Manoj Srivastava wrote:
> > In article <[🔎] 87r5sudn0p.fsf_-_@anzu.internal.golden-gryphon.com> you wrote:
> >>     [ "$(stat -c %d/%i /sbin/init)" = "$(stat -Lc %d/%i /proc/1/exe 2>/dev/null)" ] ; then
> >>     # So, init exists, and there is a linuxy /proc, and the inode of
> >>     # the executable of the process with uid 1 is the same as
> >>     # /sbin/init (ok, no init=/bin/sh going on)

> > Maybe another check besides inode idendity is better, otherwise it will not
> > be able to be used afer an upgrade (and before reboot), or?

>         Not needed. If init has been just upgraded, it has been already
>  told to init -u itself.

This does not appear to be true for upstart, which it's planned to switch to
on Linux for squeeze.

-- 
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/
slangasek@ubuntu.com                                     vorlon@debian.org


Reply to: