Date: Wed, 17 Jan 2007 08:37:58 -0500 From: Bill Moran <wmoran@collaborativefusion.com> To: Vladimir Botka <vlado@botka.homeunix.org> Cc: Richard <lists@leewelle.de>, freebsd-stable@freebsd.org Subject: Re: Failover-HA-Setup Message-ID: <20070117083758.a45714b6.wmoran@collaborativefusion.com> In-Reply-To: <1169040597.4775.9.camel@srv> References: <1169038057.23831.24.camel@richard02> <1169040597.4775.9.camel@srv>
next in thread | previous in thread | raw e-mail | index | archive | help
In response to Vladimir Botka <vlado@botka.homeunix.org>: > Richard píše v st 17. 01. 2007 v 13:47 +0100: > > Hi there! > > > > I am looking for a solution for a small problem regarding a high > > availability setup. > > I am running heartbeat on a STABLE-system, the failover works fine for > > IP-adresses and I am able to see that a > > '/usr/local/etc/rc.d/mysql-server start' statement is issued. BUT since > > the variables for mysql are not set in rc.conf (Otherwise it would be > > started at startup), it isn't starting at all. > > > > So my question: How to set those rc.conf-variables in order to start > > services in such an setup? Or is there a better solution? > > Hello, > just modify the /usr/local/etc/rc.d/mysql-server script. > Cheers, -vlado Then have to fsck around with diffs at every upgrade? Not the approach I would take. And please don't top-post. I don't remember the details of how heartbeat works, but you should be able to set the required variables and export them into the environment prior to calling the mysql-server script. If not, just create a wrapper script that sets the required variables then calls the rc script. -- Bill Moran Collaborative Fusion Inc.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070117083758.a45714b6.wmoran>