mirror of
https://github.com/samba-team/samba.git
synced 2025-03-26 18:50:30 +03:00
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)
This commit is contained in:
parent
71e9016ec2
commit
cbf030a72e
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user