]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Don't barf when tcp redirection fails
authorLuk Claes <luk@debian.org>
Wed, 16 Mar 2011 20:34:24 +0000 (21:34 +0100)
committerLuk Claes <luk@debian.org>
Wed, 16 Mar 2011 20:34:24 +0000 (21:34 +0100)
debian/nfs-common.init
debian/nfs-kernel-server.init

index 18a4fddb4684b2c4e0d8947fe494a728a156957d..13aa9741ae53887f0f08ee699e79cc34ba23143c 100644 (file)
@@ -138,7 +138,7 @@ case "$1" in
            log_progress_msg "statd"
            
            # See if portmap or rpcbind are running
-           cat </dev/null >/dev/tcp/localhost/111
+           (cat </dev/null >/dev/tcp/localhost/111) 2>/dev/null
            RET=$?
            if [ $RET != 0 ]; then
                echo
index a67f0d26d082864925a5babb1d3c436d5bd64d07..f9a385c666c6123f73a8c9cfb75fa2433c8cd205 100644 (file)
@@ -84,7 +84,7 @@ case "$1" in
                log_progress_msg "nfsd"
                
                # See if portmap or rpcbind are running
-               cat </dev/null >/dev/tcp/localhost/111
+               (cat </dev/null >/dev/tcp/localhost/111) 2>/dev/null
                RET=$?
                if [ $RET != 0 ]; then
                    echo