summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2017-01-19 14:40:20 +1100
committerMartin Schwenke <martins@samba.org>2017-01-20 15:01:13 +0100
commit8eafa2c5dfe78432b8b29d6063c2d2a1224470f0 (patch)
treef3d28f78919ecbf9113a04403409812a186abd36 /ctdb
parente7c2f270b5d37e75a6176b4a3dce923b981ef191 (diff)
downloadsamba-8eafa2c5dfe78432b8b29d6063c2d2a1224470f0.tar.gz
ctdb-scripts: Avoid log noise when NFS checks directory is empty
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb')
-rwxr-xr-xctdb/config/events.d/60.nfs2
1 files changed, 2 insertions, 0 deletions
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].}"