[Debian-ha-maintainers] corosync init info: Default-Start/Required-Start/etc.

Raoul Bhatia [IPAX] r.bhatia at ipax.at
Tue Mar 29 15:46:03 UTC 2011


hi,

currently, corosync's init script is configured this way:
> ### BEGIN INIT INFO
> # Provides:          corosync
> # Required-Start:    $network $remote_fs $syslog
> # Required-Stop:     $network $remote_fs $syslog
> # Default-Start:     S
> # Default-Stop:      0 1 6
> # Short-Description: corosync cluster framework
> ### END INIT INFO

whereas heartbeat's is:
> # Short-Description: High-availability services.
> # Provides: heartbeat HA
> # Required-Start: $remote_fs $network $time $syslog
> # Should-Start: openhpid
> # Required-Stop: $remote_fs $network $time $syslog
> # Should-stop: openhpid
> # Default-Start: 2 3 4 5
> # Default-Stop: 0 1 6

Q:
corosync shows "Default-Start: S", which - according to my understanding
means:

1. inserv will handle it via .depend.boot, and
2. update-rc.d will handle it via /etc/rcS.d/


as discussed in bug 596694 [1], $syslog needs to be started prior
to corosync. the problem now is:

* /etc/init.d/rsyslog:
> # Default-Start:     2 3 4 5
> # Default-Stop:      0 1 6

* /etc/init.d/syslog-ng:
> # Default-Start:     2 3 4 5
> # Default-Stop:      0 1 6

which means that syslogd's will be handled via /etc/rc[2345].d/.

after running into troubles last year [2][3], i've been updating my
local corosync initscript to reflect heartbeat's:
"# Default-Start:     2 3 4 5" and never had any bootup problems.


revisiting this issue for a couple of hours (!) today i wonder what
the reasons for "Default-Start: S" are, and if we shouldn't copy
heartbeat's behavior.

what do you think?

thanks,
raoul

PS: why does heartbeat require $time whereas corosync does not?

[1] http://bugs.debian.org/596694
[2] http://bugs.debian.org/587565
[3] http://bugs.debian.org/596694#15
-- 
____________________________________________________________________
DI (FH) Raoul Bhatia M.Sc.          email.          r.bhatia at ipax.at
Technischer Leiter

IPAX - Aloy Bhatia Hava OG          web.          http://www.ipax.at
Barawitzkagasse 10/2/2/11           email.            office at ipax.at
1190 Wien                           tel.               +43 1 3670030
FN 277995t HG Wien                  fax.            +43 1 3670030 15
____________________________________________________________________



More information about the Debian-ha-maintainers mailing list