X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=debian%2Fnfs-common.init;h=13aa9741ae53887f0f08ee699e79cc34ba23143c;hb=11d4bbae495212614e04228a611d68daec9be8aa;hp=32e89c8373e783cfdcd6b55f3108658ad7b53c85;hpb=db454c10e20488033aa5c03722c4bd8167206cf7;p=nfs-utils.git diff --git a/debian/nfs-common.init b/debian/nfs-common.init index 32e89c8..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 @@ -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