| Summary: | Add an rc script for quota | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Shevek <gentoo> |
| Component: | [OLD] Core system | Assignee: | Joachim Blaabjerg (RETIRED) <styx> |
| Status: | RESOLVED TEST-REQUEST | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | 1.4_rc2 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
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. |
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