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

Guido Günther agx at sigxcpu.org
Tue Mar 29 16:24:28 UTC 2011


On Tue, Mar 29, 2011 at 05:46:03PM +0200, Raoul Bhatia [IPAX] wrote:
> 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.

Look at 2ebaf59950f323bbaa4e91910712a655d8bea8ee. This changed for
1.2.1-4.
 -- Guido

> 
> 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
> ____________________________________________________________________
> 
> _______________________________________________
> Debian-ha-maintainers mailing list
> Debian-ha-maintainers at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/debian-ha-maintainers
> 



More information about the Debian-ha-maintainers mailing list