summaryrefslogtreecommitdiffstats
path: root/etc/redhat
diff options
context:
space:
mode:
Diffstat (limited to 'etc/redhat')
-rw-r--r--etc/redhat/nfs3
-rwxr-xr-xetc/redhat/nfs.init7
2 files changed, 10 insertions, 0 deletions
diff --git a/etc/redhat/nfs b/etc/redhat/nfs
index 5e21f1f..2ace4cd 100644
--- a/etc/redhat/nfs
+++ b/etc/redhat/nfs
@@ -29,3 +29,6 @@
# TUNE_QUEUE to yes will set the values to 256kb.
# TUNE_QUEUE="yes"
# NFS_QS=262144
+
+# Mount /proc/fs/nfsd (2.6 kernel only)
+MOUNT_NFSD="yes"
diff --git a/etc/redhat/nfs.init b/etc/redhat/nfs.init
index ac45937..1ac4213 100755
--- a/etc/redhat/nfs.init
+++ b/etc/redhat/nfs.init
@@ -50,9 +50,13 @@ if [ "$TUNE_QUEUE" = "yes" ]; then
[ -z "$NFS_QS" ] && NFS_QS=262144
fi
+
# See how we were called.
case "$1" in
start)
+ if [ -d /proc/fs/nfsd -a "$MOUNT_NFSD" = "yes" ] ; then
+ /bin/mount -t nfsd nfsd /proc/fs/nfsd
+ fi
# Start daemons.
# Apply input queue increase for nfs server
if [ "$TUNE_QUEUE" = "yes" ]; then
@@ -144,6 +148,9 @@ case "$1" in
# Do it the last so that clients can still access the server
# when the server is running.
action "Shutting down NFS services: " /usr/sbin/exportfs -au
+ if [ -d /proc/fs/nfsd -a "$MOUNT_NFSD" = "yes" ] ; then
+ /bin/umount /proc/fs/nfsd
+ fi
rm -f /var/lock/subsys/nfs
;;
status)