#!/bin/sh
# Begin /etc/init.d/sysklogd

#
# Include the functions declared in the /etc/init.d/functions file
#
ROOT="/usr/sbin"
source /etc/rc.d/functions

case "$1" in
        start)
                echo -n "Starting rpc portmap......"
                loadproc /sbin/rpc.portmap

                echo -n "Starting rpc mountd......."
                loadproc $ROOT/rpc.mountd
		
		echo -n "Starting rpc network filesystem daemon...."
		loadproc $ROOT/rpc.nfsd
                ;;

        stop)
                echo -n "Stopping rpc portmap......"
                killproc rpc.portmap

                echo -n "Stopping rpc mountd......."
                killproc rpc.mountd
		
		echo -n "Stopping rpc network filesystem daemon...."
		killproc rpc.nfsd
	        ;;

       restart)
                $0 stop
                /bin/sleep 1
                $0 start
                ;;

        status)
                statusproc rpc.mountd
                statusproc rpc.nfsd
                ;;

        *)
                echo "Usage: $0 {start|stop|restart|status}"
                exit 1
        ;;

esac


# End /etc/init.d/sysklogd
