From 0de79c12ba6df7ae2f73acc50584b5d054d1005a Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Tue, 12 Oct 2010 08:02:18 +1100 Subject: [PATCH] Make sure the statd directory exist before trying to access the "update trigger" file. CQ 1020344 (This used to be ctdb commit 171f98f6f7ce7d01f47c44043ad599702711b12d) --- ctdb/config/events.d/60.nfs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ctdb/config/events.d/60.nfs b/ctdb/config/events.d/60.nfs index 60de41e51a1..cd5219aa575 100755 --- a/ctdb/config/events.d/60.nfs +++ b/ctdb/config/events.d/60.nfs @@ -25,6 +25,7 @@ case "$1" in ;; startup) ctdb_service_start + mkdir -p $CTDB_VARDIR/state/statd touch $CTDB_VARDIR/state/statd/update-trigger ;; @@ -107,6 +108,7 @@ case "$1" in CURRENT_TIME=`date +"%s"` expr "$CURRENT_TIME" ">" "(" "$LAST_UPDATE" "+" "60" ")" >/dev/null 2>/dev/null [ $? = "0" ] && { + mkdir -p $CTDB_VARDIR/state/statd touch $CTDB_VARDIR/state/statd/update-trigger $CTDB_BASE/statd-callout updatelocal & $CTDB_BASE/statd-callout updateremote &