summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>2007-01-20 04:24:20 +0000
committermpp <mpp@FreeBSD.org>2007-01-20 04:24:20 +0000
commit61ebc4fdc6ffaff63296473b0fef0ff5e17067f7 (patch)
tree915762d169141174f5d3691a9a5eaf2757d14241 /etc
parent31cdd06b7a65f1d446e539addc985286967ddbd7 (diff)
downloadFreeBSD-src-61ebc4fdc6ffaff63296473b0fef0ff5e17067f7.zip
FreeBSD-src-61ebc4fdc6ffaff63296473b0fef0ff5e17067f7.tar.gz
Add the following knobs for quotas if they are enabled:
quotaon_flags - flags for the quotaon command quotaoff_flags - flags for the quotaoff command quotacheck_flags - flags for the quotacheck command
Diffstat (limited to 'etc')
-rw-r--r--etc/defaults/rc.conf3
-rwxr-xr-xetc/rc.d/quota6
2 files changed, 6 insertions, 3 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index 6f1ba62..89b93d2 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -495,6 +495,9 @@ dumpdir="/var/crash" # Directory where crash dumps are to be stored
savecore_flags="" # Used if dumpdev is enabled above, and present.
enable_quotas="NO" # turn on quotas on startup (or NO).
check_quotas="YES" # Check quotas on startup (or NO).
+quotaon_flags="-a" # Turn quotas on for all file systems (if enabled)
+quotaoff_flags="-a" # Turn quotas off for all file systems at shutdown
+quotacheck_flags="-a" # Check all file system quotas (if enabled)
accounting_enable="NO" # Turn on process accounting (or NO).
ibcs2_enable="NO" # Ibcs2 (SCO) emulation loaded at startup (or NO).
ibcs2_loaders="coff" # List of additional Ibcs2 loaders (or NO).
diff --git a/etc/rc.d/quota b/etc/rc.d/quota
index 8a81f83..e0f4bc8 100755
--- a/etc/rc.d/quota
+++ b/etc/rc.d/quota
@@ -16,18 +16,18 @@
name="quota"
rcvar="enable_quotas"
start_cmd="quota_start"
-stop_cmd="/usr/sbin/quotaoff -a"
+stop_cmd="/usr/sbin/quotaoff ${quotaoff_flags}"
quota_start()
{
if checkyesno check_quotas; then
echo -n 'Checking quotas:'
- quotacheck -a
+ quotacheck ${quotacheck_flags}
echo ' done.'
fi
echo -n 'Enabling quotas:'
- quotaon -a
+ quotaon ${quotaon_flags}
echo ' done.'
}
OpenPOWER on IntegriCloud