cluster: STABLE3 - init: silence ls output on error
Fabio M. Di Nitto
fabbione@fedoraproject.org
Fri Mar 6 12:02:00 GMT 2009
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=e675ac9a6967591c1345ff3549bd0295bf052b5f
Commit: e675ac9a6967591c1345ff3549bd0295bf052b5f
Parent: f6eee60b7caf712d5b4c60d740385c256bd9943a
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate: Fri Mar 6 13:01:04 2009 +0100
Committer: Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Fri Mar 6 13:01:04 2009 +0100
init: silence ls output on error
redirect stderr to null since we don't need it and it makes the
startup noisy in case there is no notification directory
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
cman/init.d/cman.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cman/init.d/cman.in b/cman/init.d/cman.in
index a18823d..2ec8b8e 100644
--- a/cman/init.d/cman.in
+++ b/cman/init.d/cman.in
@@ -313,7 +313,7 @@ start_daemons()
# nothing to do
;;
conditional)
- if [ -n "$(ls -1 @NOTIFYDDIR@)" ]; then
+ if [ -n "$(ls -1 @NOTIFYDDIR@ 2>/dev/null)" ]; then
errmsg=$(@SBINDIR@/cmannotifyd 2>&1 ) || return 1
fi
;;
More information about the Cluster-cvs
mailing list