#!/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 ;; *) echo "usage: $0 [start|stop|restart]" ;; esac # End of file