Evenscripts: improvements to ctdb_service_check_reconfigure().
authorMartin Schwenke <martin@meltin.net>
Thu, 13 Jan 2011 22:31:56 +0000 (09:31 +1100)
committerMartin Schwenke <martin@meltin.net>
Thu, 11 Aug 2011 00:46:57 +0000 (10:46 +1000)
commit21dfcbbdccd906fcd6ab7bba81418ce565bf63aa
treed1f7ff9b8857a4782b05da387d91b52ad2c589f9
parentdefaec99df8c279d8e315d5010f9146e013afda2
Evenscripts: improvements to ctdb_service_check_reconfigure().

* Make this function applicable to "ipreallocated" event too.

* Monitor event should not always succeed just because we reconfigure.

  If the service was unhealthy before the reconfigure and we end the
  reconfigure with "exit 0" then we can cause the node's health status
  to flip-flop.

  To avoid this we return the status of the service from the previous
  monitor event.

Signed-off-by: Martin Schwenke <martin@meltin.net>
config/functions