Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 5564
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Joachim Blaabjerg <styx@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Gregg <greggscam@hotmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 5564 depends on: Show dependency tree
Bug 5564 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2002-07-25 10:20 0000
This is my startup script for quota.  It runs from the "boot" runlevel.  This
turns quotas on and does the initial check at boot.  Then on shutdown/reboot
turns it off.  I think maybe it could go in the package for quota?

#!/sbin/runscript

depend() {
	need net
}

start() {
	ebegin "Starting Quota"
	if [ -x /sbin/quotacheck ]
	then
		echo "Checking quotas. This make take some time."
		/sbin/quotacheck -avug
		echo "Done."
	fi
	if [ -x /sbin/quotaon ]
		then
			echo "Turning on quota"
			/sbin/quotaon -avug
	fi
	eend $?
}

stop() {
	ebegin "Stopping quota"
	if [ -x /sbin/quotaoff ]
		then
			echo "Turning quota off"
			/sbin/quotaoff -avug
	fi
	eend $?
}

------- Comment #1 From SpanKY 2002-07-25 21:06:58 0000 -------
why does this need net ?

------- Comment #2 From Gregg 2002-07-25 21:25:51 0000 -------
Sorry the script should have need localmount , not net

------- Comment #3 From Martin Schlemmer (RETIRED) 2002-12-08 15:58:20 0000 -------
Joachim, script looks out of syntax perspective ok if you add the fix in
comment #2, check if it works ok, and maybe add ?

------- Comment #4 From Joachim Blaabjerg 2002-12-09 02:45:14 0000 -------
Committed. I bumped it to -r1 and ~ masked on all platforms as well, might have 
been a little overkill.  

What bothers me about this script, is that I've found no really good way of
killing 
quota{on,off}'s output. I'll gladly take a look at the source and make it use a
more 
reasonable output function if it's wanted. :) 

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug