]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-scripts: Move state directory creation to "startup" action
authorMartin Schwenke <mschwenke@ddn.com>
Thu, 29 Jun 2023 03:25:03 +0000 (13:25 +1000)
committerVolker Lendecke <vl@samba.org>
Thu, 30 May 2024 11:42:30 +0000 (11:42 +0000)
Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
ctdb/config/statd-callout

index 375a22af26f47125d4c6e85be5893c2b5d8a1223..d23d123e177b81ce9372a5329086811b33b08a6c 100755 (executable)
@@ -57,9 +57,6 @@ statd_callout_state_dir="${script_state_dir}/statd-callout"
 statd_callout_db="ctdb.tdb"
 statd_callout_queue_dir="${statd_callout_state_dir}/queue"
 
-mkdir -p "$statd_callout_queue_dir" ||
-       die "Failed to create directory \"${statd_callout_queue_dir}\""
-
 pnn=$(ctdb_get_pnn)
 
 ############################################################
@@ -121,6 +118,9 @@ delete_records()
 
 startup()
 {
+       mkdir -p "$statd_callout_queue_dir" ||
+               die "Failed to create directory \"${statd_callout_queue_dir}\""
+
        $CTDB attach "$statd_callout_db" persistent
 }