Canonical method to locally disable an init script?

Thorsten Glaser t.glaser at
Mon Nov 23 19:19:02 GMT 2020

Hi list,

this is more of a sysvinit user question, but I don’t know of
any better place to ask.

I am currently doing…

	sudo /usr/sbin/update-rc.d -f rng-tools-debian remove

… on any systems where rngd does not need to be automatically
started or even shouldn’t. (These are supplied with entropy
over the network, which a separate script handles, so rngd
truly must be installed, but the init script should not even
try to start it.)

However, each update of the package re-enables it, as etckeeper shows:

[master 45b2678] committing changes in /etc made by "apt-get --purge dist-upgrade linux-image-5.9.0-1-amd64- fontforge"
 11 files changed, 52 insertions(+), 46 deletions(-)
 create mode 120000 rc0.d/K01rng-tools-debian
 create mode 120000 rc1.d/K01rng-tools-debian
 create mode 120000 rc2.d/S02rng-tools-debian
 create mode 120000 rc3.d/S02rng-tools-debian
 create mode 120000 rc4.d/S02rng-tools-debian
 create mode 120000 rc5.d/S02rng-tools-debian
 create mode 120000 rc6.d/K01rng-tools-debian

Apparently I’m not using the correct way to disable that script.
But which of the many ways found (most recent ’net founds indicate
update-rc.d remove, older ones show update-rc.d disable or even
defaults disable) is the *correct* one?

Perhaps I even accidentally found a bug, update-rc.d remove is
right, used to work, but with insserv the symlinks are forcibly
added now?

Thanks in advance,
[16:04:33] bkix: "veni vidi violini"
[16:04:45] bkix: "ich kam, sah und vergeigte"...

More information about the Debian-init-diversity mailing list