[Pkg-sysvinit-devel] policy-rc.d doesn't work?

Bob Proulx bob at proulx.com
Sun Apr 21 23:40:27 UTC 2013


I am not subscribed to pkg-sysvinit-devel.  Please keep me in the CC
list on any responses.

I have read through /usr/share/doc/sysv-rc/README.policy-rc.d.gz in
detail.  I have read the additional information at 
http://people.debian.org/~hmh/invokerc.d-policyrc.d-specification.txt
too and also various other documentation.

But I can't get it to work.  I don't even see it getting invoked.

If I have a /usr/sbin/policy-rc.d script that does nothing but this:

  #!/bin/sh
  exec >> /var/tmp/policy-rc.d.out 2>&1
  echo /usr/sbin/policy-rc.d called
  exit 0

There is never a file /var/tmp/policy-rc.d.out created.  If I change
that to:

  #!/bin/sh
  exec >> /var/tmp/policy-rc.d.out 2>&1
  echo /usr/sbin/policy-rc.d called
  exit 101

Then according to the docs no daemons should be started.  But when I
reboot all daemons are running normally.  In spite of the policy-rc.d
script the init scripts were all still run.

What am I missing?

Bob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20130421/19c4e824/attachment.pgp>


More information about the Pkg-sysvinit-devel mailing list