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)
commit39a43feae7c7de07ddaf2d6cb962f923d47d0c19
tree47e270f5c856fd8aa63051922f6f197dd9992f39
parented6814ff0a59ddbb1c1b3128b505380f60d7aeb7
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>
config/events.d/11.natgw