[Pkg-sysvinit-devel] Bug#546532: Bug#546532: sysv-rc: invoke-rc.d does not default to a sensitive behaviour when no start o stop symlink is found

Henrique de Moraes Holschuh hmh at debian.org
Sun Sep 13 22:25:25 UTC 2009


On Sun, 13 Sep 2009, Raphael Geissert wrote:
> And although update-rc.d(8) says that it is a common administration error to 
> delete a start symlink instead of renaming it to make it a stop symlink, the 
> default behaviour of invoke-rc.d in that case is not sensitive, and leads to 
> the init script being executed.

Yes.  Which is the safer failure mode for maintainer scripts, which are the
main reason for invoke-rc.d to exist.

> Package foo ships an init script called foo and starts on the default 
> runlevels; but the administrator wants to manually start it, never 
> automatically, so she rm /etc/rc*.d/S*foo (because she is not aware of the 
> warning of update-rc.d). The foo package also ships a logrotate rule, which 

Counter example: packages in rcS.d like udev ship scripts with no
information about what shold be done on any runlevel other than S.

Now you try to upgrade it, and it gets stopped and not restarted.  Bang!

This bug cannot be "fixed" just like that.

-- 
  "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
  Henrique Holschuh





More information about the Pkg-sysvinit-devel mailing list