Canonical method to locally disable an init script?

Thorsten Glaser t.glaser at tarent.de
Mon Nov 23 20:15:28 GMT 2020


On Mon, 23 Nov 2020, Lorenzo wrote:

> update-rc.d <initscriptname> disable

$ sudo /usr/sbin/update-rc.d -f rng-tools-debian disable
insserv: warning: current start runlevel(s) (empty) of script `rng-tools-debian' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `rng-tools-debian' overrides LSB defaults (0 1 6).
insserv: warning: current start runlevel(s) (empty) of script `rng-tools-debian' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `rng-tools-debian' overrides LSB defaults (0 1 6).

> should create KNNinitscriptname links in all runlevels (and remove
> SNNinitscriptname links)

It does.

> This way when you update the package your preference is preserved.

It does, indeed, but issues the same warnings again:


$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
Calculating upgrade... Done
The following packages will be upgraded:
  rng-tools-debian
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 48.3 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://deb.debian.org/debian sid/main amd64 rng-tools-debian amd64 2.3 [48.3 kB]
Fetched 48.3 kB in 0s (618 kB/s)
apt-listchanges: Reading changelogs...
(Reading database ... 451826 files and directories currently installed.)
Preparing to unpack .../rng-tools-debian_2.3_amd64.deb ...
Unpacking rng-tools-debian (2.3) over (2.2) ...
Setting up rng-tools-debian (2.3) ...
Installing new version of config file /etc/init.d/rng-tools-debian ...
I: Trying to create /dev/hwrng device node
/run/udev or .udevdb or .udev presence implies active udev.  Aborting MAKEDEV invocation.
insserv: warning: current start runlevel(s) (empty) of script `rng-tools-debian' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `rng-tools-debian' overrides LSB defaults (0 1 6).
insserv: warning: current start runlevel(s) (empty) of script `rng-tools-debian' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `rng-tools-debian' overrides LSB defaults (0 1 6).
Processing triggers for man-db (2.9.3-2) ...
[master b6c8e1f] committing changes in /etc made by "apt-get dist-upgrade"
 Author: mirabilos <t.glaser at tarent.de>
 1 file changed, 1 insertion(+), 1 deletion(-)


Okay, so we’ve got a *working* way. Next questions here are:
• is this the “officially supported” way?
  ⇒ if so, why does it warn so loudly?

Thanks,
//mirabilos
-- 
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg

*************************************************

Mit unserem Consulting bieten wir Unternehmen maßgeschneiderte Angebote in
Form von Beratung, Trainings sowie Workshops in den Bereichen
Softwaretechnologie, IT Strategie und Architektur, Innovation und Umsetzung
sowie Agile Organisation.

Besuchen Sie uns auf https://www.tarent.de/consulting .
Wir freuen uns auf Ihren Kontakt.

*************************************************



More information about the Debian-init-diversity mailing list