From cb5451d4c164cc3ed20d026344c53c4ee492fc04 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Thu, 18 Nov 2010 13:52:46 +1100 Subject: [PATCH] Dont pollute the logs with a "file not found" message CQ S1020745 --- config/events.d/60.nfs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1