Failover-HA-Setup

Ivan Voras ivoras at fer.hr
Thu Jan 18 10:47:24 UTC 2007


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.



More information about the freebsd-stable mailing list