xref: /dragonfly/etc/rc.d/quota (revision 7485684f)
1#!/bin/sh
2#
3# $FreeBSD: src/etc/rc.d/quota,v 1.3 2002/10/12 10:31:31 schweikh Exp $
4#
5
6# Enable/Check the quotas (must be after ypbind if using NIS)
7#
8
9# PROVIDE: quota
10# REQUIRE: mountcritremote ypset
11# BEFORE:  DAEMON
12
13. /etc/rc.subr
14
15name="quota"
16rcvar="enable_quotas"
17start_cmd="quota_start"
18stop_cmd="/usr/sbin/quotaoff -a"
19
20quota_start()
21{
22	if checkyesno check_quotas; then
23		echo -n 'Checking quotas:'
24		quotacheck -a
25		echo ' done.'
26	fi
27
28	echo -n 'Enabling quotas:'
29	quotaon -a
30	echo ' done.'
31}
32
33load_rc_config $name
34run_rc_command "$1"
35