From bd81cc521d668bb86a7dedf6dcb9e175952942e5 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 4 Jun 2007 23:54:22 +1000 Subject: [PATCH] ignore commented out entries in /etc/exports (This used to be ctdb commit d316b49ba46e819359f045adfd87da92860fd1b5) --- ctdb/config/events.d/60.nfs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctdb/config/events.d/60.nfs b/ctdb/config/events.d/60.nfs index d0e892622e8..23fdb088826 100755 --- a/ctdb/config/events.d/60.nfs +++ b/ctdb/config/events.d/60.nfs @@ -14,7 +14,7 @@ case $cmd in mkdir -p /etc/ctdb/state/nfs # wait for all nfs exported directories to become available - nfs_dirs=`cut -d' ' -f1 /etc/exports` + nfs_dirs=`grep -v '^#' < /etc/exports | cut -d' ' -f1` ctdb_wait_directories "NFS" $nfs_dirs service nfs start -- 2.47.3