From 558cf280b22e0433c3601f47fb1ce8b660e71691 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Thu, 29 Jun 2023 13:25:03 +1000 Subject: [PATCH] ctdb-scripts: Move state directory creation to "startup" action Signed-off-by: Martin Schwenke Reviewed-by: Volker Lendecke --- ctdb/config/statd-callout | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ctdb/config/statd-callout b/ctdb/config/statd-callout index 375a22af26f..d23d123e177 100755 --- a/ctdb/config/statd-callout +++ b/ctdb/config/statd-callout @@ -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 }