[Pkg-sysvinit-devel] Bug#361717: invoke-rc.d always restarts services in a chroot, runlevel unknown

Julian Gilbey jdg at polya.uklinux.net
Thu Jul 6 06:04:40 UTC 2006


On Sun, Apr 09, 2006 at 10:25:53PM +0200, Kurt Roeckx wrote:
> Package: update-rc.d
> Version: 2.86.ds1-14
> 
> Hi,
> 
> It seems that invoke-rc.d always restarts services in chroots (if
> you don't have a policy to deny it.)
> 
> The problem is that runlevel returns "unknown" and returns an
> exist status of 1.  So the script checks for

I have a similar but different problem:
In my unstable chroot, /sbin/runlevel successfully returns "2 0",
causing the following messages:

invoke-rc.d: ----------------------------------------------------
invoke-rc.d: WARNING: invoke-rc.d called during shutdown sequence
invoke-rc.d: enabling safe mode: initscript policy layer disabled
invoke-rc.d: ----------------------------------------------------

So it then totally ignores my policy-rc.d, which says "don't run in a
chroot", and goes ahead and tries to run the scripts anyway.

   Julian




More information about the Pkg-sysvinit-devel mailing list