X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=debian%2Fnfs-common.init;h=31357bd3543ff1df58d49b66a311776a1a55b81f;hp=a9dcb5d510ec94ddc9352c3240d8e48c1c8edc7b;hb=7ac2c918e16fd63aa81c3aeb0e4870cded076bba;hpb=8c8a9fb90c606cd8fc852a60727291cf9dea051c diff --git a/debian/nfs-common.init b/debian/nfs-common.init index a9dcb5d..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 \ - --name lockd --user root --signal 9 + --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 "." ;;