[Linux-cluster] Restart children but relocate parent
Lon Hohberger
lhh at redhat.com
Fri Apr 24 17:55:42 UTC 2009
On Thu, 2009-04-23 at 08:58 +0100, Ralph Zukeb wrote:
> Hello,
>
> I have two init scripts:
> /etc/init.d/noBugs
> /etc/init.d/buggy
>
> buggy is dependent on noBugs.
>
> If buggy dies, I want to restart it. If noBugs dies, I want to
> relocate both noBugs and buggy to the other node.
>
> How can I represent this? Would a failover domain achieve this?
<resources>
<script file="/etc/init.d/noBugs" name="noBugs"/>
<script file="/etc/init.d/buggy" name="buggy"/>
</resources>
<service name="the_awesome_service">
<script ref="noBugs"/>
<script ref="buggy" __independent_subtree="1" />
</service>
-- Lon
More information about the Linux-cluster
mailing list