git.samba.org
/
ctdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
scripts: Create the directory containing the recovery lock
[ctdb.git]
/
config
/
events.d
/
01.reclock
diff --git
a/config/events.d/01.reclock
b/config/events.d/01.reclock
index ed7afdd78aa89ca4c67cfc3aaf53f049aeef4f22..d3dd612471f3b91b30452d488b05f26ad0b0f944 100755
(executable)
--- a/
config/events.d/01.reclock
+++ b/
config/events.d/01.reclock
@@
-10,6
+10,11
@@
loadconfig
case "$1" in
init)
ctdb_counter_init
+
+ if [ -n "$CTDB_RECOVERY_LOCK" ] ; then
+ d=$(dirname "$CTDB_RECOVERY_LOCK")
+ mkdir -vp "$d"
+ fi
;;
monitor)