]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - debian/nfs-common.init
More changes in the same version:
[nfs-utils.git] / debian / nfs-common.init
index a9dcb5d510ec94ddc9352c3240d8e48c1c8edc7b..31357bd3543ff1df58d49b66a311776a1a55b81f 100755 (executable)
@@ -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 "."
        ;;