eventscripts: 11.natgw should not call ctdb tool in "init" event
authorMartin Schwenke <martin@meltin.net>
Fri, 11 Jan 2013 05:02:31 +0000 (16:02 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Fri, 24 May 2013 04:08:07 +0000 (14:08 +1000)
commita989a299d196ac6cb2de17cfacf26c5075e0d853
treed65ee4fdbf9f225b5f3a499450504e85c9e2c4b6
parent6d9667f01ca492b0623b23ea35f612bcc5da893e
eventscripts: 11.natgw should not call ctdb tool in "init" event

The current code calls "ctdb setnatgwstate ..." on every event.
However, calling the ctdb tool in the "init" event is not permitted.

Instead, update the capability when it is needed and at regular
intervals via the "monitor" event.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit 39a43feae7c7de07ddaf2d6cb962f923d47d0c19)
ctdb/config/events.d/11.natgw