X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=debian%2Fnfs-common.init;h=92ea10d8b8eee1657616ceee39c1fde11892234c;hb=c315741380515fe31cbf34960208420efe443069;hp=32e89c8373e783cfdcd6b55f3108658ad7b53c85;hpb=db454c10e20488033aa5c03722c4bd8167206cf7;p=nfs-utils.git diff --git a/debian/nfs-common.init b/debian/nfs-common.init index 32e89c8..92ea10d 100644 --- a/debian/nfs-common.init +++ b/debian/nfs-common.init @@ -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 RET=$? if [ $RET != 0 ]; then echo @@ -147,11 +147,16 @@ case "$1" in fi start-stop-daemon --start --oknodo --quiet \ + --pidfile /var/run/rpc.statd.pid \ --exec $PREFIX/sbin/rpc.statd -- $STATDOPTS RET=$? if [ $RET != 0 ]; then log_end_msg $RET exit $RET + else + mkdir -p /lib/init/rw/sendsigs.omit.d + rm -f /lib/init/rw/sendsigs.omit.d/statd + ln -s /var/run/rpc.statd.pid /lib/init/rw/sendsigs.omit.d/statd fi fi