]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - etc/rc.d/quota
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / etc / rc.d / quota
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 # Enable/Check the quotas (must be after ypbind if using NIS)
7
8 # PROVIDE: quota
9 # REQUIRE: mountcritremote ypset
10 # BEFORE: DAEMON
11 # KEYWORD: nojail
12
13 . /etc/rc.subr
14
15 name="quota"
16 rcvar=`set_rcvar`
17 start_cmd="quota_start"
18 stop_cmd="/usr/sbin/quotaoff ${quotaoff_flags}"
19
20 quota_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
33 load_rc_config $name
34 run_rc_command "$1"