[Pkg-sysvinit-devel] Bug#542811: invoke-rc.d starts disabled startup scripts

Harald Dunkel harald.dunkel at aixigo.de
Fri Aug 21 14:43:17 UTC 2009


Package: sysv-rc
Version: 2.86.ds1-61

I have disabled several services using "insserv -r", e.g.

	nfs-common
	nfs-kernel-server
	samba

They are not supposed to be started or killed by init. Instead they are
under control of heartbeat. The LSB-style headers of these runlevel scripts
have been adjusted accordingly.

Problem: During an upgrade of these services they are started via invoke-rc.d,
even though they are not listed in the /etc/rc?.d directory for the current
runlevel. This is _fatal_ for a Linux-HA environment with its own resource
manager (Heartbeat or Pacemaker).

Looking at the man page of invoke-rc.d:

        invoke-rc.d itself only pays attention to the current runlevel; it will
        block any attempts to start a service in a runlevel in which  the  ser-
        vice  is  disabled.

I _did_ disable the services, so invoke-rc.d should block starting them. Init
would not start these services at boot time, either.


Regards

Harri






More information about the Pkg-sysvinit-devel mailing list