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