freebsd-dev/etc/rc.d/quota
Doug Barton a3e42d03b9 Substitute ypset for ypbind in REQUIRE lines. If you use ypset it has to
happen right after ypbind, and before anything that uses NIS. The only
change in rcorder accomplished by this patch is make that happen.

PR:		conf/117555
Submitted by:	John Marshall <john@rwsrv05.mby.riverwillow.net.au>
2009-06-01 04:55:13 +00:00

35 lines
542 B
Bash
Executable File

#!/bin/sh
#
# $FreeBSD$
#
# Enable/Check the quotas (must be after ypbind if using NIS)
# PROVIDE: quota
# REQUIRE: mountcritremote ypset
# BEFORE: DAEMON
# KEYWORD: nojail
. /etc/rc.subr
name="quota"
rcvar=`set_rcvar`
start_cmd="quota_start"
stop_cmd="/usr/sbin/quotaoff ${quotaoff_flags}"
quota_start()
{
if checkyesno check_quotas; then
echo -n 'Checking quotas:'
quotacheck ${quotacheck_flags}
echo ' done.'
fi
echo -n 'Enabling quotas:'
quotaon ${quotaon_flags}
echo ' done.'
}
load_rc_config $name
run_rc_command "$1"