On Thu, 15 May 2025 23:22:43 +0100 Andrew Bower <[email protected]> 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.
