summaryrefslogtreecommitdiff
path: root/nfs-utils/nfsserver
blob: 09ec88bb5eef2ad4a2b4e2ebfa58daf007c249a3 (plain)
    1 #!/bin/sh
    2 #
    3 # /etc/rc.d/nfsserver: start/stop nfs server
    4 #
    5 
    6 NFSD=/proc/fs/nfsd
    7 
    8 case $1 in
    9 start)
   10 	/bin/mount -t nfsd nfsd $NFSD
   11 	/usr/sbin/exportfs -a
   12 	/etc/rc.d/rpc.mountd start
   13 	/etc/rc.d/rpc.nfsd start
   14 	/usr/sbin/sm-notify
   15 	;;
   16 stop)
   17 	/etc/rc.d/rpc.nfsd stop
   18 	/etc/rc.d/rpc.mountd stop
   19 	/usr/sbin/exportfs -au
   20 	/bin/umount $NFSD
   21 	;;
   22 restart)
   23 	$0 stop
   24 	$0 start
   25 	;;
   26 status)
   27 	/etc/rc.d/rpc.mountd status
   28 	/etc/rc.d/rpc.nfsd status
   29 	;;
   30 *)
   31 	echo "usage: $0 [start|stop|restart|status]"
   32 	;;
   33 esac
   34 
   35 # End of file

Generated by cgit