]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - etc/rc.d/quota
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.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="quota_enable"
17 load_rc_config $name
18 start_cmd="quota_start"
19 stop_cmd="/usr/sbin/quotaoff ${quotaoff_flags}"
20
21 quota_start()
22 {
23         if checkyesno check_quotas; then
24                 echo -n 'Checking quotas:'
25                 quotacheck ${quotacheck_flags}
26                 echo ' done.'
27         fi
28
29         echo -n 'Enabling quotas:'
30         quotaon ${quotaon_flags}
31         echo ' done.'
32 }
33
34 run_rc_command "$1"