X-Git-Url: http://git.samba.org/?a=blobdiff_plain;f=config%2Fevents.d%2F60.nfs;h=23f22b70ea9f497b50420368be3b66e370041b92;hb=cb5451d4c164cc3ed20d026344c53c4ee492fc04;hp=ff56166ce1cbfc6857eb5a43104b2410446b2fe8;hpb=cdac098f3c829011830b63edba571856875c7b8d;p=sahlberg%2Fctdb.git diff --git a/config/events.d/60.nfs b/config/events.d/60.nfs index ff56166c..23f22b70 100755 --- a/config/events.d/60.nfs +++ b/config/events.d/60.nfs @@ -156,7 +156,7 @@ case "$1" in # once every 60 seconds, update the statd state database for which # clients need notifications - LAST_UPDATE=`stat --printf="%Y" $CTDB_VARDIR/state/statd/update-trigger` + LAST_UPDATE=`stat --printf="%Y" $CTDB_VARDIR/state/statd/update-trigger 2>/dev/null` CURRENT_TIME=`date +"%s"` [ $CURRENT_TIME -ge $(($LAST_UPDATE + 60)) ] && { mkdir -p $CTDB_VARDIR/state/statd