Change the test if NFS is working to use "service nfs status"
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 8 Mar 2010 18:15:33 +0000 (05:15 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 8 Mar 2010 18:15:33 +0000 (05:15 +1100)
instead of rpcinfo to the nfs program.

config/events.d/60.nfs

index 2115d46e647d840d35715f51c81fcc16036c95e2..61c8081a853dcb70cc80d8116c2cc2a5b1867c53 100755 (executable)
@@ -75,10 +75,10 @@ case "$1" in
                echo "ERROR: STATD is not responding. Trying to restart it. [rpc.statd $RPCSTATDOPTS]"
        }
 
-
-       # check that NFS responds to rpc requests
-       [ "$CTDB_NFS_SKIP_KNFSD_ALIVE_CHECK" = "yes" ] || {
-           ctdb_check_rpc "NFS" 100003 3
+       # check that NFS is running
+       service nfs status 2>/dev/null >/dev/null || {
+               echo NFS is not running
+               exit 1
        }
 
        # and that its directories are available