nfs-kernel-server: make lockd, statd and mountd bind to fixed ports to make it useabl...
authorPeter Wagner <​tripolar@gmx.at>
Thu, 18 Feb 2010 16:18:39 +0000 (16:18 +0000)
committerPeter Wagner <​tripolar@gmx.at>
Thu, 18 Feb 2010 16:18:39 +0000 (16:18 +0000)
SVN-Revision: 19706

net/nfs-kernel-server/files/nfsd.init

index 6130bec54291b802c0a586aa17428e82ae2f7c36..bf658d0a1a9fe29bb981037de5892aa188bfb06b 100644 (file)
@@ -12,10 +12,11 @@ start() {
        mkdir -p $LOCK_D
        touch $NFS_D/rmtab
 
-       /usr/sbin/rpc.statd
+        sysctl -w fs.nfs.nlm_tcpport=32777 fs.nfs.nlm_udpport=32777 > /dev/null
+       /usr/sbin/rpc.statd -p 32778 -o 32779
        /usr/sbin/exportfs -r
        /usr/sbin/rpc.nfsd
-       /usr/sbin/rpc.mountd
+       /usr/sbin/rpc.mountd -p 32780
 }
 
 stop() {