[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Linux-cluster] Restart children but relocate parent



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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]