quota revision 179872
1#!/bin/sh
2#
3# $FreeBSD: head/etc/rc.d/quota 179872 2008-06-19 07:06:11Z mtm $
4#
5
6# Enable/Check the quotas (must be after ypbind if using NIS)
7
8# PROVIDE: quota
9# REQUIRE: mountcritremote
10# BEFORE: DAEMON
11# KEYWORD: nojail
12
13. /etc/rc.subr
14
15name="quota"
16rcvar=`set_rcvar`
17start_cmd="quota_start"
18stop_cmd="/usr/sbin/quotaoff ${quotaoff_flags}"
19
20quota_start()
21{
22	if checkyesno check_quotas; then
23		echo -n 'Checking quotas:'
24		quotacheck ${quotacheck_flags}
25		echo ' done.'
26	fi
27
28	echo -n 'Enabling quotas:'
29	quotaon ${quotaon_flags}
30	echo ' done.'
31}
32
33load_rc_config $name
34run_rc_command "$1"
35