scripts: Create the directory containing the recovery lock
[ctdb.git] / config / events.d / 01.reclock
index ed7afdd78aa89ca4c67cfc3aaf53f049aeef4f22..d3dd612471f3b91b30452d488b05f26ad0b0f944 100755 (executable)
@@ -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)