X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=debian%2Fnfs-common.init;h=13aa9741ae53887f0f08ee699e79cc34ba23143c;hb=38861db18a0687aaf483ea0bf03bf8c928ca0980;hp=d69eb34a9f3c410e5f6154f9936172a8d714319f;hpb=1f2e2f02c4bb8a2cb3afa09a6be57d65784ae019;p=nfs-utils.git diff --git a/debian/nfs-common.init b/debian/nfs-common.init index d69eb34..13aa974 100644 --- a/debian/nfs-common.init +++ b/debian/nfs-common.init @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash ### BEGIN INIT INFO # Provides: nfs-common @@ -138,7 +138,7 @@ case "$1" in log_progress_msg "statd" # See if portmap or rpcbind are running - lsof -i :111 >/dev/null + (cat /dev/tcp/localhost/111) 2>/dev/null RET=$? if [ $RET != 0 ]; then echo