]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - debian/nfs-common.init
support/nfs/svc_socket.c: New.
[nfs-utils.git] / debian / nfs-common.init
index 78edad134214dc75313490e179067785ccb0301d..2ae17b3e1b165b263a1ee9948275291ac021250e 100755 (executable)
 
 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
@@ -32,7 +36,7 @@ case "$1" in
        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"
@@ -48,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 "."
        ;;