Failover-HA-Setup
Doug Barton
dougb at FreeBSD.org
Mon Jan 22 00:32:29 UTC 2007
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
More information about the freebsd-stable
mailing list