Changeset 45bb4ac in bootscripts-standard


Ignore:
Timestamp:
Nov 28, 2008, 2:17:37 AM (16 years ago)
Author:
Joe Ciccone <jciccone@…>
Branches:
master
Children:
fac9335
Parents:
8bfe893
Message:

rpc.mountd depends on having /proc/fs/nfsd mounted, nfsv3 works fine without this filesystem but nfs4 will fail to mount with no such file or directory, you also will see no logs about a failure from the rpc.mountd daemon.

re-order the bootscript accordingly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cblfs/init.d/nfs-server

    r8bfe893 r45bb4ac  
    1414case "$1" in
    1515        start)
     16                # NFSD support only in 2.6 kernel
     17                /bin/uname -r | /bin/grep "^2.6" 2>&1 > /dev/null
     18                if [ $? = 0 ]; then
     19                        boot_mesg "Mounting nfsd virtual filesystem..."
     20                        /bin/mount -t nfsd none /proc/fs/nfsd 2>&1 > /dev/null
     21                        evaluate_retval
     22                fi
     23
    1624                boot_mesg "Starting NFS mountd..."
    1725                loadproc /usr/sbin/rpc.mountd
     
    3846                        boot_mesg "Starting NFS rquotad..."
    3947                        loadproc /usr/sbin/rpc.rquotad
    40                 fi
    41 
    42                 # NFSD support only in 2.6 kernel
    43                 /bin/uname -r | /bin/grep "2.6" 2>&1 > /dev/null
    44                 if [ $? = 0 ]; then
    45                         boot_mesg "Mounting nfsd virtual filesystem..."
    46                         /bin/mount -t nfsd none /proc/fs/nfsd 2>&1 > /dev/null
    47                         evaluate_retval
    4848                fi
    4949
     
    8686                evaluate_retval
    8787
     88                # Remove a pid file that isn't done automatically
     89                boot_mesg "Removing the rpc.statd pid file if it exists"
     90                if [ -f /var/run/rpc.statd.pid ]; then
     91                    rm -f /var/run/rpc.statd.pid
     92                fi
     93
    8894                # NFSD support only in 2.6 kernel
    89                 /bin/uname -r | /bin/grep "2.6" 2>&1 > /dev/null
     95                /bin/uname -r | /bin/grep "^2.6" 2>&1 > /dev/null
    9096                if [ $? = 0 ]; then
    9197                        boot_mesg "Unmounting NFS Virtual Filesystem..."
     
    94100                fi
    95101
    96                 # Remove a pid file that isn't done automatically
    97                 boot_mesg "Removing the rpc.statd pid file if it exists"
    98                 if [ -f /var/run/rpc.statd.pid ]; then
    99                     rm -f /var/run/rpc.statd.pid
    100                 fi
    101102                ;;
    102103
Note: See TracChangeset for help on using the changeset viewer.