summaryrefslogtreecommitdiffstats
path: root/utils/statd/statd.man
diff options
context:
space:
mode:
authorMi Jinlong <mijinlong@cn.fujitsu.com>2011-08-03 12:52:48 -0400
committerSteve Dickson <steved@redhat.com>2011-08-03 13:41:12 -0400
commitab5977afefc805a0be172662fe03207fad8769ad (patch)
tree9d193a7f2ea42020fbd4ae9f19d052d80798af57 /utils/statd/statd.man
parentbdaecae8ac3ff2c4f1b643c9226699f5a8295a45 (diff)
downloadnfs-utils-ab5977afefc805a0be172662fe03207fad8769ad.tar.gz
nfs-utils-ab5977afefc805a0be172662fe03207fad8769ad.tar.xz
nfs-utils-ab5977afefc805a0be172662fe03207fad8769ad.zip
rpc.mountd: let mountd consult /etc/services for port
At RHEL, if user set port for mountd at /etc/services as "mount 12345/tcp", mountd should be bind to 12345, but the latest nfs-utils, mountd get a rand port, not 12345. This patch make sure mountd be bind to the port which was set at /etc/service. Signed-off-by: Mi Jinlong <mijinlong@cn.fujitsu.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/statd/statd.man')
-rw-r--r--utils/statd/statd.man5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/statd/statd.man b/utils/statd/statd.man
index b72236c..203f8c9 100644
--- a/utils/statd/statd.man
+++ b/utils/statd/statd.man
@@ -219,7 +219,10 @@ for details.
Specifies the port number used for RPC listener sockets.
If this option is not specified,
.B rpc.statd
-chooses a random ephemeral port for each listener socket.
+will try to consult
+.IR /etc/services ,
+if gets port succeed, set the same port for all listener socket,
+otherwise chooses a random ephemeral port for each listener socket.
.IP
This option can be used to fix the port value of its listeners when
SM_NOTIFY requests must traverse a firewall between clients and servers.