summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2010-11-19 14:32:28 +1100
committerMartin Schwenke <martin@meltin.net>2011-08-09 16:42:27 +1000
commitcbf030a72efb69756dd722d82fff11067e989377 (patch)
tree9e9935458694f7a1ef9aa0e64f91d61f4d7ccd63
parent71e9016ec2c14d7c57a23d3fda457c8540beb2ee (diff)
downloadsamba-cbf030a72efb69756dd722d82fff11067e989377.tar.gz
samba-cbf030a72efb69756dd722d82fff11067e989377.tar.xz
samba-cbf030a72efb69756dd722d82fff11067e989377.zip
00.ctdb eventscript removes all files from $ctdb_active_dir.
Without this you can get into a situation where ctdbd can not start. If the active file for a service exists but the service is not running, then trying to stop the service may fail, causing the eventscript to exit from ctdb_start_stop_service(). Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 28379ca0f747c5952d690a451834ce7421adfd34)
-rwxr-xr-xctdb/config/events.d/00.ctdb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/config/events.d/00.ctdb b/ctdb/config/events.d/00.ctdb
index 9df5af447c..bf77b9c9a4 100755
--- a/ctdb/config/events.d/00.ctdb
+++ b/ctdb/config/events.d/00.ctdb
@@ -33,7 +33,7 @@ update_config_from_tdb() {
case "$1" in
init)
# make sure we have a blank state directory for the scripts to work with
- rm -rf $CTDB_VARDIR/state
+ rm -rf $CTDB_VARDIR/state $ctdb_active_dir/*
mkdir -p $CTDB_VARDIR/state || {
ret=$?
echo "mkdir -p $CTDB_VARDIR/state - failed - $ret"