]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - debian/nfs-kernel-server.init
More changes in the same version:
[nfs-utils.git] / debian / nfs-kernel-server.init
index c2ee49bbee1f45b516efce39a6906405d88fa0cd..548b5e057ffc0a78879617a3494c7a205f13cdd6 100755 (executable)
@@ -36,7 +36,7 @@ case "$1" in
                start-stop-daemon --start --quiet \
                    --exec $PREFIX/sbin/rpc.nfsd -- $RPCNFSDCOUNT
                printf " mountd"
                start-stop-daemon --start --quiet \
                    --exec $PREFIX/sbin/rpc.nfsd -- $RPCNFSDCOUNT
                printf " mountd"
-               $PREFIX/bin/rpcinfo -u localhost nfs 3 > /dev/null 2>&1 ||
+               $PREFIX/bin/rpcinfo -u localhost nfs 3 >/dev/null 2>&1 ||
                    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3"
                start-stop-daemon --start --quiet \
                    --exec $PREFIX/sbin/rpc.mountd -- $RPCMOUNTDOPTS
                    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3"
                start-stop-daemon --start --quiet \
                    --exec $PREFIX/sbin/rpc.mountd -- $RPCMOUNTDOPTS
@@ -49,10 +49,10 @@ case "$1" in
   stop)
        printf "Stopping $DESC: mountd"
        start-stop-daemon --stop --oknodo --quiet \
   stop)
        printf "Stopping $DESC: mountd"
        start-stop-daemon --stop --oknodo --quiet \
-           --exec $PREFIX/sbin/rpc.mountd
+           --name rpc.mountd --user 0
        printf " nfsd"
        start-stop-daemon --stop --oknodo --quiet \
        printf " nfsd"
        start-stop-daemon --stop --oknodo --quiet \
-           --name nfsd --user root --signal 2
+           --name nfsd --user 0 --signal 2
        echo "."
 
        printf "Unexporting directories for $DESC..."
        echo "."
 
        printf "Unexporting directories for $DESC..."