From: Martin Schwenke Date: Thu, 19 Jan 2017 03:40:20 +0000 (+1100) Subject: ctdb-scripts: Avoid log noise when NFS checks directory is empty X-Git-Tag: talloc-2.1.9~367 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8eafa2c5dfe78432b8b29d6063c2d2a1224470f0;p=thirdparty%2Fsamba.git ctdb-scripts: Avoid log noise when NFS checks directory is empty Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/config/events.d/60.nfs b/ctdb/config/events.d/60.nfs index bd6be78e9a5..eaa260b7005 100755 --- a/ctdb/config/events.d/60.nfs +++ b/ctdb/config/events.d/60.nfs @@ -37,6 +37,8 @@ nfs_check_services () # Files must end with .check - avoids editor backups, RPM fu, ... for _f in "$_dir"/[0-9][0-9].*.check ; do + [ -r "$_f" ] || continue + _t="${_f%.check}" _progname="${_t##*/[0-9][0-9].}"