Date: Sun, 21 Jan 2007 16:32:25 -0800 From: Doug Barton <dougb@FreeBSD.org> To: freebsd-stable@freebsd.org Subject: Re: Failover-HA-Setup Message-ID: <45B40619.30206@FreeBSD.org> In-Reply-To: <20070119170012.GB1532@roadrunner.q.local> References: <1169038057.23831.24.camel@richard02> <20070117142552.GC1225@dkirhlarov.mow.oilspace.com> <1169044590.23831.38.camel@richard02> <!&!AAAAAAAAAAAYAAAAAAAAAE09%2B/5QgBZBvgbigfttNszCgAAAEAAAAKqgNmKe9jZJqVaT8G8LCA8BAAAAAA==@milfordmail.com> <45AE68DF.5010700@FreeBSD.org> <1169110278.20706.58.camel@chaffinch> <20070119170012.GB1532@roadrunner.q.local>
next in thread | previous in thread | raw e-mail | index | archive | help
Ulrich Spoerlein wrote: > Only two options remain: modify existing mysql-server script (bad idea, > will be overwritten on update) or go through a proxy script which > "transforms" start|stop -> onestart|onestop > > You could also alter the environment of heartbeat (it's really just a > bunch of poorly written shell scripts) and set mysql_enable=YES there, > but that'd be just as fragile as rewriting the existing mysql-server > script. Yeah, I thin we're definitely in territory that is not covered by the boot scripts as written here. This thread has got me thinking though, how useful would something like 'foo_enable=conditional' be? What I'm thinking is that you could define a script in foo_condition that rc.d would run. We could either do a straight yes/no, where if the script exits successfully (exit code 0) then we run the service, and if it fails (non-zero exit code) we don't. OR, we could have the script return the argument we want to feed that service's startup script. I think that may have some utility here, what do y'all think? Doug -- This .signature sanitized for your protection
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45B40619.30206>