1#!/bin/sh
2#
3#
4
5# Enable/Check the quotas (must be after ypbind if using NIS)
6
7# PROVIDE: quota
8# REQUIRE: mountcritremote ypset
9# BEFORE: DAEMON
10# KEYWORD: nojail
11
12. /etc/rc.subr
13
14name="quota"
15desc="Enable/check the quotas"
16rcvar="quota_enable"
17load_rc_config $name
18start_cmd="quota_start"
19stop_cmd="/usr/sbin/quotaoff ${quotaoff_flags}"
20
21# doesn't make sense to run in a svcj: config setting
22quota_svcj="NO"
23
24quota_start()
25{
26	if checkyesno check_quotas; then
27		echo -n 'Checking quotas:'
28		quotacheck ${quotacheck_flags}
29		echo ' done.'
30	fi
31
32	echo -n 'Enabling quotas:'
33	quotaon ${quotaon_flags}
34	echo ' done.'
35}
36
37run_rc_command "$1"
38