[Pkg-sysvinit-devel] policy-rc.d doesn't work?
Henrique de Moraes Holschuh
hmh at debian.org
Mon Apr 22 17:12:00 UTC 2013
On Mon, 22 Apr 2013, Petter Reinholdtsen wrote:
> [Bob Proulx]
> > 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.
> policy-rc.d is invoked by update-rc.d when a package is installed and
> removed, and not by the individual init.d scripts when the machine or
> service is started.
policy-rc.d is invoked (only, AFAIK) by invoke-rc.d, which should be used by
all the maintainer scripts inside the packages to start/stop/restart
services when a package is installed, removed or upgraded.
It does not override the initscript subsystem itself, so if you want to
change the behaviour on boot, you use "update-rc.d <foo> disable/enable".
> Clear documentation, I suspect. :)
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
More information about the Pkg-sysvinit-devel