X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=debian%2Fnfs-common.init;h=2ae17b3e1b165b263a1ee9948275291ac021250e;hb=c5a48eb6e49e4c0203f7adf137ffeab29a5798e3;hp=78edad134214dc75313490e179067785ccb0301d;hpb=509cf23ffbe6075e6065d3b59db02bdec1c51f59;p=nfs-utils.git diff --git a/debian/nfs-common.init b/debian/nfs-common.init index 78edad1..2ae17b3 100755 --- a/debian/nfs-common.init +++ b/debian/nfs-common.init @@ -11,6 +11,10 @@ PREFIX= +# Should rpc.statd listen on a specific port? +# If so, set this variable to a statd argument like: "--port 1000". +STATDPORT="" + NEED_LOCKD=yes if test -f /proc/ksyms then @@ -32,7 +36,7 @@ case "$1" in printf "Starting $DESC:" printf " statd" start-stop-daemon --start --quiet \ - --exec $PREFIX/sbin/rpc.statd + --exec $PREFIX/sbin/rpc.statd -- $STATDPORT if [ "$NEED_LOCKD" = yes ] then printf " lockd" @@ -48,11 +52,11 @@ case "$1" in then printf " lockd" start-stop-daemon --stop --oknodo --quiet \ - --exec $PREFIX/sbin/rpc.lockd + --name rpc.lockd --user 0 fi printf " statd" start-stop-daemon --stop --oknodo --quiet \ - --exec $PREFIX/sbin/rpc.statd + --name rpc.statd --user 0 echo "." ;;