#!/bin/sh # # /etc/rc.d/nfsserver: start/stop nfs server # NFSD=/proc/fs/nfsd case $1 in start) /bin/mount -t nfsd nfsd $NFSD /usr/sbin/exportfs -a /etc/rc.d/rpc.mountd start /etc/rc.d/rpc.nfsd start /usr/sbin/sm-notify ;; stop) /etc/rc.d/rpc.nfsd stop /etc/rc.d/rpc.mountd stop /usr/sbin/exportfs -au /bin/umount $NFSD ;; restart) $0 stop $0 start ;; status) /etc/rc.d/rpc.mountd status /etc/rc.d/rpc.nfsd status ;; *) echo "usage: $0 [start|stop|restart|status]" ;; esac # End of file