ctdb/eventscripts: Move all eventscript state under $CTDB_VARDIR/state
commitb7bfe46636d07c71f83daff884ec339c9b4aee72
authorMartin Schwenke <martin@meltin.net>
Wed, 18 Dec 2013 06:08:55 +0000 (18 17:08 +1100)
committerAmitay Isaacs <amitay@samba.org>
Fri, 17 Jan 2014 08:58:26 +0000 (17 09:58 +0100)
treea3034a3b59121ed837f04acbe8658752becb2240
parente6304d1e1adc86fc9c1199feb7b4802614fbc70f
ctdb/eventscripts: Move all eventscript state under $CTDB_VARDIR/state

Services can be flagged for reconfigure when they release IPs at
shutdown.  The flag is never removed and the service is prematurely
reconfigured during the first "ipreallocated" event, before any IPs
are hosted and before the "startup" event has actually started the
services.

$CTDB_VARDIR/state directly contained the service state subdirectories
and is already removed in the "init" event.  Just push the service
state subdirectories down a level and put everything else in a
subdirectory.

This way all the eventscript state gets cleaned up every time CTDB
starts up.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Fri Jan 17 09:58:26 CET 2014 on sn-devel-104
ctdb/config/functions