Re: administration of initscripts
Hello
Excerpt from Roger Leigh:
-- <snip> --
> update-rc.d foo disable|enable
>
> is one method.
-- <snip> --
i did played further around with this. First have a look at this:
# find /etc/rc[S0-6].d/ -iname '*mountkernfs.sh*'
/etc/rcS.d/S01mountkernfs.sh
# update-rc.d mountkernfs.sh disable
update-rc.d: using dependency based boot sequencing
insserv: warning: current start runlevel(s) (empty) of script `mountkernfs.sh'
overrides LSB defaults (S).
insserv: warning: current stop runlevel(s) (S) of script `mountkernfs.sh'
overrides LSB defaults (empty).
# find /etc/rc[S0-6].d/ -iname '*mountkernfs.sh*'
/etc/rcS.d/K01mountkernfs.sh
As you can see update-rc.d complains, but only that the initscript defaults are
getting overwritten. Now look at this:
# find /etc/rc[S0-6].d/ -iname '*mountkernfs.sh*'
/etc/rcS.d/S01mountkernfs.sh
# rc-update del mountkernfs.sh
insserv: Service mountkernfs has to be enabled to start service udev
insserv: Service mountkernfs has to be enabled to start service keyboard-setup
insserv: Service mountkernfs has to be enabled to start service mountdevsubfs
insserv: Service mountkernfs has to be enabled to start service networking
insserv: Service mountkernfs has to be enabled to start service procps
insserv: exiting now!
# find /etc/rc[S0-6].d/ -iname '*mountkernfs.sh*'
/etc/rc1.d/K01mountkernfs.sh
insserv clearly complains instead that other services are affected by this
change. Generally to a admin insserv seems to be nicer API over update-rc.d to
me. Apart from that, by this i found a major bug in rc-update(). Will fix that.
--
Regards,
Thilo
4096R/0xC70B1A8F
721B 1BA0 095C 1ABA 3FC6 7C18 89A4 A2A0 C70B 1A8F
Reply to: