Split check_quotas into check_quotas and enable_quotas
enable_quotas - use quotas on your system check_quotas - check for violations on startup By assuming that a system was neat and without violation before it booted we can skip a long (and at that point needless) process. Submitted by: Alex Perel <veers@disturbed.net>
This commit is contained in:
parent
1afb37ef7f
commit
61bf4caf49
@ -9,7 +9,7 @@
|
||||
#
|
||||
# All arguments must be in double or single quotes.
|
||||
#
|
||||
# $Id: rc.conf,v 1.2 1999/03/03 15:04:33 phk Exp $
|
||||
# $Id: rc.conf,v 1.3 1999/03/11 16:17:24 jfitz Exp $
|
||||
|
||||
##############################################################
|
||||
### Important initial Boot-time options #####################
|
||||
@ -186,7 +186,8 @@ usbd_flags="" # Flags to usbd (if enabled).
|
||||
sendmail_enable="YES" # Run the sendmail daemon (or NO).
|
||||
sendmail_flags="-bd -q30m" # Flags to sendmail (if enabled)
|
||||
dumpdev="NO" # Device name to crashdump to (if enabled).
|
||||
check_quotas="NO" # Check quotas (or NO).
|
||||
enable_quotas="NO" # turn on quotas on startup (or NO).
|
||||
check_quotas="NO" # Check quotas on startup (or NO).
|
||||
accounting_enable="NO" # Turn on process accounting (or NO).
|
||||
ibcs2_enable="NO" # Ibcs2 (SCO) emulation loaded at startup (or NO).
|
||||
linux_enable="NO" # Linux emulation loaded at startup (or NO).
|
||||
|
21
etc/rc
21
etc/rc
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $Id: rc,v 1.181 1999/03/14 03:20:22 des Exp $
|
||||
# $Id: rc,v 1.182 1999/03/14 20:26:39 des Exp $
|
||||
# From: @(#)rc 5.27 (Berkeley) 6/5/91
|
||||
|
||||
# System startup script run by init on autoboot
|
||||
@ -233,12 +233,19 @@ if [ -n "$network_pass1_done" ]; then
|
||||
network_pass2
|
||||
fi
|
||||
|
||||
# Check the quotas (must be after ypbind if using NIS)
|
||||
if [ "X${check_quotas}" = X"YES" ]; then
|
||||
echo -n 'checking quotas:'
|
||||
quotacheck -a
|
||||
echo ' done.'
|
||||
quotaon -a
|
||||
# Enable/Check the quotas (must be after ypbind if using NIS)
|
||||
if [ "X${enable_quotas}" = X"YES" ]; then
|
||||
|
||||
# Only check quotas if they have been previously enabled, and requested
|
||||
if [ "X${check_quotas}" = X"YES" ]; then
|
||||
echo -n 'checking quotas:'
|
||||
quotacheck -a
|
||||
echo ' done.'
|
||||
fi
|
||||
|
||||
echo -n 'enabling quotas:'
|
||||
quotaon -a
|
||||
echo ' done.'
|
||||
fi
|
||||
|
||||
if [ -n "$network_pass2_done" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user