On Tue, Oct 27 2009, Steve Langasek wrote: > 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.
Well, I guess we shall have to use other means (invoke-rc.d?) to have upstart re-exec itself. Does upstart provide other means for that? manoj -- A little suffering is good for the soul. Kirk, "The Corbomite Maneuver", stardate 1514.0 Manoj Srivastava <sriva...@debian.org> <http://www.debian.org/~srivasta/> 1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org