#! /bin/sh
# Copyright (c) 1996 S.u.S.E. GmbH Fuerth, Germany.  All rights reserved.
#
# Author: 
# A. Gebhardt <albrecht.gebhardt@uni-klu.ac.at>
# /sbin/init.d/quota
#

. /etc/rc.config
test "$START_PORTMAP" = yes -a "$NFS_SERVER" = yes \
     -a "$START_QUOTA" = yes || exit 0

case "$1" in
    start)

        if [ -x /usr/sbin/rpc.rquotad ]
        then
                echo "Starting rquota daemon."
                /usr/sbin/rpc.rquotad
        fi

	;;
    stop)

        if [ -x /usr/sbin/rpc.rquotad ]
        then
                echo "Stopping rquota daemon."
                killall /usr/sbin/rpc.rquotad
        fi
;;
    *)
	echo "Usage: $0 {start|stop}"
	exit 1
esac

exit 0
