comments on insserv

Michael Biebl biebl at debian.org
Sat Apr 12 13:40:38 UTC 2008


Hi,

after (re)enabling insserv this week, I thought I'd share my
experiences. insserv successfully installed and reordered the boot sequence.

I attached the diff stat (thanks to etckeeper) after the conversion.



And rc2.d and rc6.d after the conversion:
ls -1 /etc/rc2.d/
K02exim4
K02samba
K03mysql
K04mysql-ndb
K04system-tools-backends
K05apache2
K05bluetooth
K05capiutils
K05mysql-ndb-mgm
K05postgresql-8.3
K06ssh
K10openvpn
K12sl-modem-daemon
K24udftools
README
S15portmap
S16nfs-common
S19binfmt-support
S19loadcpufreq
S19rc.local
S19rsyslog
S19virtualbox-ose
S20acpid
S20anacron
S20atd
S20cpufrequtils
S20cron
S20dbus
S20network-manager-dispatcher
S20openbsd-inetd
S20rsync
S20smartmontools
S20stop-bootlogd
S21avahi-daemon
S21dhcdbd
S21hal
S22cupsys
S22gdm
S22network-manager
S22powersaved
S24rmnologin

ls -1 /etc/rc6.d/
K02exim4
K02samba
K03gdm
K03mysql
K03network-manager
K03powersaved
K04avahi-daemon
K04dhcdbd
K04hal
K04mysql-ndb
K04system-tools-backends
K05acpid
K05anacron
K05apache2
K05atd
K05bluetooth
K05capiutils
K05console-screen.sh
K05cpufrequtils
K05cron
K05mysql-ndb-mgm
K05network-manager-dispatcher
K05openbsd-inetd
K05postgresql-8.3
K05rsync
K05smartmontools
K06alsa-utils
K06rsyslog
K06sudo
K06virtualbox-ose
K06wpa-ifupdown
K07sendsigs
K08umountnfs.sh
K09nfs-common
K10openvpn
K10portmap
K11networking
K12fuse
K12hwclock.sh
K12ifupdown
K12sl-modem-daemon
K12urandom
K13mountoverflowtmp
K17cryptdisks
K18cryptdisks-early
K20hdparm
K20hwclockfirst.sh
K22umountfs
K23umountroot
K24reboot
K24udftools
README



A few comments/observations

1.)

I checked the diffstat for copied lines:

#	copied:     rcS.d/S48console-screen.sh -> rc0.d/K05console-screen.sh
#	copied:     rcS.d/S75sudo -> rc0.d/K06sudo
#	copied:     rcS.d/S40networking -> rc0.d/K11networking
#	copied:     rcS.d/S08hwclockfirst.sh -> rc0.d/K20hwclockfirst.sh
#	copied:     rcS.d/S48console-screen.sh -> rc1.d/K05console-screen.sh
#	copied:     rcS.d/S75sudo -> rc1.d/K06sudo
#	copied:     rcS.d/S48console-screen.sh -> rc6.d/K05console-screen.sh
#	copied:     rcS.d/S75sudo -> rc6.d/K06sudo
#	copied:     rcS.d/S40networking -> rc6.d/K11networking
#	copied:     rcS.d/S08hwclockfirst.sh -> rc6.d/K20hwclockfirst.sh

This probably means, the LSB header information is not in sync with the
information that is passed to update-rc.d

Example: console-tools.postinst has
  update-rc.d console-screen.sh start 48 S .
But the LSB header has
  # Default-Start:     S 2 3 4 5
  # Default-Stop:      0 1 6

I'd assume, those LSB headers are not entirely correct. I'll leave it up
to Petter to decide and file bug reports.

2.) The start/stop priorities have strange "holes".
Take ls /etc/rc2.d
The first start priorities are
  S15,S16 [*no* 17,18],S19,S20,S21,S22, [*no* 23], S24
Why does it start at 15 at all, and not S01? Why are some start
priorities missing?
Similar issue in /etc/rc[06].d/
There
K02,03,04,05,06,07,08,09,10,11,12,13, [*no* 14,15,16],17,18, [*no* 19],
20,[*no* 21],22,23,24
Some questions here: Why is there no K01, why are those "holes" in the
sequence?

3.) console-setup is not started after console-screen.sh anymore.
I installed console-setup to configure my console font and keyboard
layout. In the old init sequence, console-screen.sh was run at S48,
console-setup S49.
Now console-setup is S19, console-screen.sh S20, so my changes get reset
by console-screen.sh again.
=> I'd say console-setup should be fixed to run after console-screen.sh
Again, I'll leave it up to you to file a bug report and request the
correct action (as I don't really know what's the right thing to do).

4.) Imho you should not only divert update-rc.d, but also it's man page.
It's weird when update-rc.d and update-rc.d.8 are out of sync.
The man page of update-rc.d-innserv is insufficient at its current state
though. A lot of vital information is missing (e.g. how to disable
services with insserv).

So, that's it. Hope this comments are useful.

Cheers,
Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffstat.log
Url: http://lists.alioth.debian.org/pipermail/initscripts-ng-devel/attachments/20080412/47c500b3/attachment-0001.txt 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.alioth.debian.org/pipermail/initscripts-ng-devel/attachments/20080412/47c500b3/attachment-0001.pgp 


More information about the initscripts-ng-devel mailing list