- Timestamp:
- Nov 27, 2008, 6:17:37 PM (16 years ago)
- Branches:
- master
- Children:
- fac9335
- Parents:
- 8bfe893
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cblfs/init.d/nfs-server
r8bfe893 r45bb4ac 14 14 case "$1" in 15 15 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 16 24 boot_mesg "Starting NFS mountd..." 17 25 loadproc /usr/sbin/rpc.mountd … … 38 46 boot_mesg "Starting NFS rquotad..." 39 47 loadproc /usr/sbin/rpc.rquotad 40 fi41 42 # NFSD support only in 2.6 kernel43 /bin/uname -r | /bin/grep "2.6" 2>&1 > /dev/null44 if [ $? = 0 ]; then45 boot_mesg "Mounting nfsd virtual filesystem..."46 /bin/mount -t nfsd none /proc/fs/nfsd 2>&1 > /dev/null47 evaluate_retval48 48 fi 49 49 … … 86 86 evaluate_retval 87 87 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 88 94 # NFSD support only in 2.6 kernel 89 /bin/uname -r | /bin/grep " 2.6" 2>&1 > /dev/null95 /bin/uname -r | /bin/grep "^2.6" 2>&1 > /dev/null 90 96 if [ $? = 0 ]; then 91 97 boot_mesg "Unmounting NFS Virtual Filesystem..." … … 94 100 fi 95 101 96 # Remove a pid file that isn't done automatically97 boot_mesg "Removing the rpc.statd pid file if it exists"98 if [ -f /var/run/rpc.statd.pid ]; then99 rm -f /var/run/rpc.statd.pid100 fi101 102 ;; 102 103
Note:
See TracChangeset
for help on using the changeset viewer.