#!/bin/sh
#
# nfs-server -- start or stop the nfs server
#

. /etc/rc.d/sysconfig

case "$1" in
start)
    if [ -x /usr/sbin/rpc.nfsd -a -x /usr/sbin/rpc.mountd ]; then
	need network portmapper

	echo "starting network file system server"
	/usr/sbin/rpc.nfsd -n
	/usr/sbin/rpc.mountd -n
    fi
    ;;
info)
    echo "Share local directories (UNIX)"
    ;;
stop)
    if killall rpc.nfsd; then
	echo "stopping network file system server"
	killall rpc.nfsd
	killall rpc.mountd
    fi
    ;;
*)
    echo "usage: $0 {start|stop}"
    ;;
esac
