summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-10-03 10:29:12 +0000
committerMike Frysinger <vapier@gentoo.org>2004-10-03 10:29:12 +0000
commite7b409c1bbeb301e205918dc0e41c34178772ceb (patch)
treea0454009671360b42ea8f5d6c0f79a28ee9cdd37 /sys-fs/quota/files/quota.rc
parentmove quota stuff from sys-apps to sys-fs (diff)
downloadhistorical-e7b409c1bbeb301e205918dc0e41c34178772ceb.tar.gz
historical-e7b409c1bbeb301e205918dc0e41c34178772ceb.tar.bz2
historical-e7b409c1bbeb301e205918dc0e41c34178772ceb.zip
move from sys-apps
Diffstat (limited to 'sys-fs/quota/files/quota.rc')
-rw-r--r--sys-fs/quota/files/quota.rc34
1 files changed, 34 insertions, 0 deletions
diff --git a/sys-fs/quota/files/quota.rc b/sys-fs/quota/files/quota.rc
new file mode 100644
index 000000000000..58e81872a4c9
--- /dev/null
+++ b/sys-fs/quota/files/quota.rc
@@ -0,0 +1,34 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/quota/files/quota.rc,v 1.1 2004/10/03 10:28:05 vapier Exp $
+
+depend() {
+ need localmount
+}
+
+start() {
+ ebegin "Starting Quota"
+ if [ -x /sbin/quotacheck ]
+ then
+ echo "Checking quotas. This may 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 $?
+}