From: | "Justin Lecher (jlec)" <jlec@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-fs/quota/files: quota.rc7 |
Date: | Thu, 03 Mar 2011 07:26:37 |
Message-Id: | 20110303072627.45F8E20057@flycatcher.gentoo.org |
1 | jlec 11/03/03 07:26:27 |
2 | |
3 | Added: quota.rc7 |
4 | Log: |
5 | Add check() to initscript, #357089 |
6 | |
7 | (Portage version: 2.2.0_alpha26/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 sys-fs/quota/files/quota.rc7 |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/quota/files/quota.rc7?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/quota/files/quota.rc7?rev=1.1&content-type=text/plain |
14 | |
15 | Index: quota.rc7 |
16 | =================================================================== |
17 | #!/sbin/runscript |
18 | # Copyright 1999-2011 Gentoo Foundation |
19 | # Distributed under the terms of the GNU General Public License, v2 |
20 | # $Header: /var/cvsroot/gentoo-x86/sys-fs/quota/files/quota.rc7,v 1.1 2011/03/03 07:26:27 jlec Exp $ |
21 | |
22 | extra_started_commands="check" |
23 | description_check="Running quotacheck with quota being offline" |
24 | |
25 | depend() { |
26 | need localmount |
27 | use portmap |
28 | } |
29 | |
30 | start() { |
31 | if [[ ${RUN_QUOTACHECK} == "yes" ]] ; then |
32 | ebegin "Checking quotas (may take a while)" |
33 | quotacheck ${QUOTACHECK_OPTS} |
34 | eend $? |
35 | fi |
36 | |
37 | ebegin "Starting quota" |
38 | quotaon ${QUOTAON_OPTS} |
39 | eend $? |
40 | } |
41 | |
42 | stop() { |
43 | ebegin "Stopping quota" |
44 | quotaoff ${QUOTAOFF_OPTS} |
45 | eend $? |
46 | } |
47 | |
48 | check() { |
49 | ebegin "Checking quota" |
50 | quotaoff ${QUOTAOFF_OPTS} && \ |
51 | quotacheck ${QUOTACHECK_OPTS} && \ |
52 | quotaon ${QUOTAON_OPTS} |
53 | eend $? |
54 | } |