X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=debian%2Fnfs-common.init;h=31357bd3543ff1df58d49b66a311776a1a55b81f;hp=63bc29c4d138ba51887c66c1b7fac498ab8bdb89;hb=7ac2c918e16fd63aa81c3aeb0e4870cded076bba;hpb=7c9a0d40bbf7bc54373c94786c0e8469616fec11 diff --git a/debian/nfs-common.init b/debian/nfs-common.init index 63bc29c..31357bd 100755 --- a/debian/nfs-common.init +++ b/debian/nfs-common.init @@ -25,12 +25,10 @@ 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 \ @@ -50,11 +48,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 "." ;;