diff options
author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2010-10-12 08:02:18 +1100 |
---|---|---|
committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2010-10-12 08:02:18 +1100 |
commit | 0de79c12ba6df7ae2f73acc50584b5d054d1005a (patch) | |
tree | af50e21233d183b7ab53697e0e4cff60d2aebaa7 | |
parent | 842d9aab4e4c9531a3ac5c0376405339b7025b36 (diff) | |
download | samba-0de79c12ba6df7ae2f73acc50584b5d054d1005a.tar.gz samba-0de79c12ba6df7ae2f73acc50584b5d054d1005a.tar.xz samba-0de79c12ba6df7ae2f73acc50584b5d054d1005a.zip |
Make sure the statd directory exist before trying to access the
"update trigger" file.
CQ 1020344
(This used to be ctdb commit 171f98f6f7ce7d01f47c44043ad599702711b12d)
-rwxr-xr-x | ctdb/config/events.d/60.nfs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ctdb/config/events.d/60.nfs b/ctdb/config/events.d/60.nfs index 60de41e51a..cd5219aa57 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 & |