Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17593 - Add an rc script for quota
Summary: Add an rc script for quota
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Joachim Blaabjerg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-15 20:35 UTC by Shevek
Modified: 2003-11-30 00:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shevek 2003-03-15 20:35:47 UTC
Also, there is the problem of bootstrapping quotas the first time when they are
installed, which requires the -c flag?

Your religion might or might not dictate the use of the -M flag and the -b flag
used below.

#!/sbin/runscript
# Copyright 2003 Shevek
# Distributed under the terms of the GNU General Public License v2

depend() {
        need localmount
        before rmnologin logger
}

start() {
        # Check quotas and then turn quota system on:
        if fgrep quota /etc/fstab 1> /dev/null 2> /dev/null ; then
                if [ -x /sbin/quotacheck ]; then
                        ebegin "Checking filesystem quotas"
                        /sbin/quotacheck -avugMb
                        eend $?
                fi
                if [ -x /sbin/quotaon ]; then
                        ebegin "Activating filesystem quotas"
                        /sbin/quotaon -avug
                        eend $?
                fi
        fi
}

stop() {
        if fgrep quota /etc/fstab 1> /dev/null 2> /dev/null ; then
                if [ -x /sbin/quotaoff ]; then
                        ebegin "Deactivating filesystem quotas"
                        /sbin/quotaoff -avug
                        eend $?
                fi
        fi
}

# vim:ts=4
Comment 1 Andrew Cooks (RETIRED) gentoo-dev 2003-11-30 00:02:30 UTC
This bug has been inactive for more than 180 days.

There seems to be an rc script for quota now. I'm not sure if it does the right thing.

Resolving bug as TEST-REQUEST. Please reopen if neccessary.