[Pkg-sysvinit-devel] Bug#546580: [update-rc.d] Permanently disable service, also after upgrade.

Petter Reinholdtsen pere at hungry.com
Mon Sep 14 11:10:09 UTC 2009


[Paul Menzel]
> Could you add some information about this issue in the man page or
> the Debian Wiki?

The update-rc.d(8) manual page already got this section:

  A common system administration error is to delete the links with the
  thought that this will "disable" the service, i.e., that this will
  prevent the service from being started.  However, if all links have
  been deleted then the next time the package is upgraded, the
  package's postinst script will run update-rc.d again and this will
  reinstall links at their factory default locations.  The correct way
  to disable services is to configure the service as stopped in all
  runlevels in which it is started by default.  In the System V init
  system this means renaming the service's symbolic links from S to K.

Using "update-rc.d -f ssh remove" do not disable the service, it
delete the links.

What more did you propose to do?

There is also the experimental feature in sysv-rc, to let update-rc.d
do the disabling using "update-rc.d ssh disable".  The API is not yet
final, and the feature is not implemented in file-rc, so do not expect
this to keep working in the future. :)

Happy hacking,
-- 
Petter Reinholdtsen





More information about the Pkg-sysvinit-devel mailing list