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 $? }
why does this need net ?
Sorry the script should have need localmount , not net
Joachim, script looks out of syntax perspective ok if you add the fix in comment #2, check if it works ok, and maybe add ?
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. :)