X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=debian%2Fnfs-common.init;h=2ae17b3e1b165b263a1ee9948275291ac021250e;hb=475135e4bb90212385f19c8aac8b39bd123f0a2f;hp=63bc29c4d138ba51887c66c1b7fac498ab8bdb89;hpb=7c9a0d40bbf7bc54373c94786c0e8469616fec11;p=nfs-utils.git diff --git a/debian/nfs-common.init b/debian/nfs-common.init index 63bc29c..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 @@ -25,16 +29,14 @@ fi # What is this? DESC="NFS common utilities" -# Make sure that daemon cwds are in root fs. -cd / - # See how we were called. case "$1" in start) + cd / # daemons should have root dir as cwd 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" @@ -50,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 "." ;;