freebsd-dev/etc/rc.d/quota
Mike Pritchard a0072eda86 Add the following knobs for quotas if they are enabled:
quotaon_flags - flags for the quotaon command
quotaoff_flags - flags for the quotaoff command
quotacheck_flags - flags for the quotacheck command
2007-01-20 04:24:20 +00:00

36 lines
542 B
Bash
Executable File

#!/bin/sh
#
# $FreeBSD$
#
# Enable/Check the quotas (must be after ypbind if using NIS)
#
# PROVIDE: quota
# REQUIRE: mountcritremote
# BEFORE: DAEMON
# KEYWORD: nojail
. /etc/rc.subr
name="quota"
rcvar="enable_quotas"
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"