Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Eric Sandall (10550a323682a0aa1cfc9f59d3ffe4aedb49bf19)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Eric Sandall <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Eric Sandall (10550a323682a0aa1cfc9f59d3ffe4aedb49bf19)
  • Date: Sat, 11 Aug 2007 11:16:12 -0500

GIT changes to master grimoire by Eric Sandall <sandalle AT sourcemage.org>:

net/nfs-utils/HISTORY | 5 +++++
net/nfs-utils/init.d/nfs | 5 ++++-
net/nfs-utils/init.d/nfs.conf | 16 ++++++++++++++++
3 files changed, 25 insertions(+), 1 deletion(-)

New commits:
commit 10550a323682a0aa1cfc9f59d3ffe4aedb49bf19
Author: Eric Sandall <sandalle AT sourcemage.org>
Commit: Eric Sandall <sandalle AT sourcemage.org>

nfs-utils: Allow for specifying the ports these services start on (for
NFS through a firewall)

diff --git a/net/nfs-utils/HISTORY b/net/nfs-utils/HISTORY
index a9a0e1e..ee580cd 100644
--- a/net/nfs-utils/HISTORY
+++ b/net/nfs-utils/HISTORY
@@ -1,3 +1,8 @@
+2007-08-11 Eric Sandall <sandalle AT sourcemage.org>
+ * init.d/nfs: Start rpc.statd and rpc.mountd with specific ports, if
defined
+ * init.d/nfs.conf: Add MOUNTD_PORT and STATD_PORT (undefined) with
suggested defaults
+ Quick info on how to set rpc.lockd (kernel module) to a specific
port
+
2007-07-09 Eric Sandall <sandalle AT sourcemage.org>
* DETAILS: Updated to 1.1.0

diff --git a/net/nfs-utils/init.d/nfs b/net/nfs-utils/init.d/nfs
index 113ea13..fa2aa56 100644
--- a/net/nfs-utils/init.d/nfs
+++ b/net/nfs-utils/init.d/nfs
@@ -44,8 +44,11 @@ start()
do
required_executable /usr/sbin/rpc.$d
local opts=
- if [[ $d == mountd ]]; then opts="$MOUNTDOPTS"
+ if [[ $d == mountd ]]; then opts="$MOUNTDOPTS"
+ if [[ ! -z "$MOUNTD_PORT" ]]; then opts="$opts -p $MOUNTD_PORT"
+ fi
elif [[ $d == nfsd ]]; then opts="$NUMSERVERS"
+ elif [[ $d == statd && ! -z $STATD_PORT ]]; then opts="-p $STATD_PORT"
fi
echo -n $d
loadproc /usr/sbin/rpc.$d $opts
diff --git a/net/nfs-utils/init.d/nfs.conf b/net/nfs-utils/init.d/nfs.conf
index 858d6c7..0078060 100644
--- a/net/nfs-utils/init.d/nfs.conf
+++ b/net/nfs-utils/init.d/nfs.conf
@@ -1,2 +1,18 @@
MOUNTDOPTS=""
NUMSERVERS="1"
+#
+# Suggested port for rpc.statd
+#
+#STATD_PORT=4001
+
+#
+# Suggested port for rpc.mountd
+#
+#MOUNTD_PORT=4003
+
+# To set LOCKD port, set the following in /etc/modules.conf:
+# options lockd nlm_udpport=4002 nlm_tcpport=4002
+# or pass the following to your kernel at boot:
+# lockd.nlm_udpport=4002 lockd.nlm_tcpport=4002
+#LOCKD_TCPPORT=4002
+#LOCKD_UDPPORT=4002



  • [SM-Commit] GIT changes to master grimoire by Eric Sandall (10550a323682a0aa1cfc9f59d3ffe4aedb49bf19), Eric Sandall, 08/11/2007

Archive powered by MHonArc 2.6.24.

Top of Page