Bug#680293: update-rc.d manual: `update-rc.d remove name` works when `/etc/init.d/name` exists

Josh Triplett josh at joshtriplett.org
Fri May 16 13:43:55 BST 2025


On Thu, 15 May 2025 23:22:43 +0100 Andrew Bower <andrew at bower.uk> wrote:
> If this bug is ever fixed, please make sure that '-f' still allows the
> symlinks to be removed.
> 
> Currently the only way to restore the symlinks to the defaults specified
> by the initscript are 'remove' followed by 'defaults' because the
> 'defaults' operation, inexplicably to me, won't set the defaults unless
> there are no symlinks at all.

As I understand it, the reason for this is that maintainer scripts do
`update-rc.d scriptname defaults`, and that should preserve sysadmin
removals of symlinks (because the syadmin doesn't want something to
run).

The *current* convention (which bends the rules about preserving
sysadmin changes but in a way that kinda works for people) is that if
you remove just `S` symlinks but leave the `K` symlinks you can prevent
something from starting, but if you remove *all* the symlinks then
`defaults` will reinstall them.



More information about the Pkg-systemd-maintainers mailing list