On Thu 17/Jul/2025 18:59:04 +0200 Andrew Bower wrote:
> On Thu, Jul 17, 2025 at 11:54:25AM +0100, Rainer Weikusat via Dng wrote:
>>
>> update-rc.d is a Debian legacy (due to the switch to systemd) tool [...]
>
> I did some digging after your comment and it seems the update-rc.d
> method for manipulating the symlinks is much newer than I thought (2009)
> but certainly wasn't created for systemd.
That was the epoch when LSB 4.0 was released. That is, ~5 years after LSB
headers specification (LSB 3.1: Released October 31, 2005), which these
programs rely upon.
> [...]
>
> I don't know what a new user gains from hacking or renaming init scripts
> rather than using tools to manipulate the symlinks.
Another approach is to use /etc/insserv/overrides/. One can change required
libraries and runlevels there.
My take is to use a fix-init script[*] that rebuilds the LSB header links
taking into account the existing situation, and also a concise config file
where I can override which scripts are run at which runlevel, with comments. I
prefer this because update-rc.d doesn't keep track of its invocations and their
purposes.
Best
Ale
--
[*]
https://www.tana.it/sw/fix-init/