Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jan 2007 11:47:07 +0100
From:      Ivan Voras <ivoras@fer.hr>
To:        freebsd-stable@freebsd.org
Subject:   Re: Failover-HA-Setup
Message-ID:  <eonj7e$275$1@sea.gmane.org>
In-Reply-To: <1169110028.20706.53.camel@chaffinch>
References:  <1169038057.23831.24.camel@richard02>	<200701171608.55482.nvass@teledomenet.gr>	<1169046617.23831.46.camel@richard02> <eolqpr$po3$2@sea.gmane.org> <1169110028.20706.53.camel@chaffinch>

next in thread | previous in thread | raw e-mail | index | archive | help
Richard wrote:

> If the variable mysql_enable is set in '/etc/rc.conf', mysql is started
> on both nodes at startup, it it is not there (and the passive node won't
> work due to the lack of mounted diskspace), heartbeat call
> '/usr/local/etc/rc.d/mysql-server start' and nothing happens. 

rc.conf is "sourced" by rc.subr. In other words, it's a shell script.
You can thus set it up so it sets some variables when called from
heartbeat and others when called by boot. For example, you can set an
environment variable by heartbeat (or by a script that heartbeat
calls...) and judge from that.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?eonj7e$275$1>