git.samba.org
/
sahlberg
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cdac098
)
Dont pollute the logs with a "file not found" message
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Thu, 18 Nov 2010 02:52:46 +0000
(13:52 +1100)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Thu, 18 Nov 2010 02:52:46 +0000
(13:52 +1100)
CQ S1020745
config/events.d/60.nfs
patch
|
blob
|
history
diff --git
a/config/events.d/60.nfs
b/config/events.d/60.nfs
index ff56166ce1cbfc6857eb5a43104b2410446b2fe8..23f22b70ea9f497b50420368be3b66e370041b92 100755
(executable)
--- 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
# 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
CURRENT_TIME=`date +"%s"`
[ $CURRENT_TIME -ge $(($LAST_UPDATE + 60)) ] && {
mkdir -p $CTDB_VARDIR/state/statd