X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=debian%2Fnfs-common.init;fp=debian%2Fnfs-common.init;h=e5c2a0243b8d915f2e95a4e2ac2cec1c91fcf823;hp=f1fadeb522fb50449acac0d9183dd5b4ad401c6f;hb=f37bec7a1ad2b671af7272c2b869d4ee4e72957e;hpb=4700f02a1c250b2f0ae23e2b6847dbe6423a6bc9 diff --git a/debian/nfs-common.init b/debian/nfs-common.init index f1fadeb..e5c2a02 100644 --- a/debian/nfs-common.init +++ b/debian/nfs-common.init @@ -138,12 +138,12 @@ case "$1" in if [ "$NEED_STATD" = yes ]; then log_progress_msg "statd" - # See if portmap or rpcbind are running - (cat /dev/tcp/localhost/111) 2>/dev/null + # See if rpcbind is running + rpcinfo -p >/dev/null 2>&1 RET=$? if [ $RET != 0 ]; then echo - log_warning_msg "Not starting: portmap daemon is not running" + log_warning_msg "Not starting: portmapper is not running" exit 0 fi