eventscripts: Move all eventscript state under $CTDB_VARDIR/state
authorMartin Schwenke <martin@meltin.net>
Wed, 18 Dec 2013 06:08:55 +0000 (17:08 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Mon, 20 Jan 2014 01:31:11 +0000 (12:31 +1100)
commitfe68ada3ea823771864fb5f9751eb041227740e2
tree1a04075288e19db3d683895a166477bef296c66b
parent8066b9b9d2faa9e74a89939c1af1884bb052d6cd
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

(Imported from commit b7bfe46636d07c71f83daff884ec339c9b4aee72)
config/functions