1 |
Hmm... why do you have a 'need net' dependency? |
2 |
|
3 |
I have attached mine I use. |
4 |
|
5 |
BOF |
6 |
depend() { |
7 |
need localmount |
8 |
} |
9 |
|
10 |
start() { |
11 |
if [ -x /sbin/quotacheck ] |
12 |
then |
13 |
ebegin "Checking quotas. This may take some time." |
14 |
/sbin/quotacheck -avug |
15 |
eend $? |
16 |
fi |
17 |
if [ -x /sbin/quotaon ] |
18 |
then |
19 |
ebegin "Turning on quota." |
20 |
/sbin/quotaon -avug |
21 |
eend $? |
22 |
fi |
23 |
} |
24 |
|
25 |
stop() { |
26 |
if [ -x /sbin/quotaon ] |
27 |
then |
28 |
ebegin "Turning off quota." |
29 |
/sbin/quotaoff |
30 |
eend $? |
31 |
fi |
32 |
} |
33 |
EOF |
34 |
|
35 |
|
36 |
-- |
37 |
Christian Axelsson |
38 |
smiler@××××××××××.nu |
39 |
|
40 |
-------------------- |
41 |
On Thu, 25 Jul 2002 10:17:30 -0500 (CDT) |
42 |
"Gregg" <gregg@××.am> wrote: |
43 |
|
44 |
> This is my startup script for quota. It runs from the "boot" runlevel. |
45 |
> This turns quotas on and does the initial check at boot. Then on |
46 |
> shutdown/reboot turns it off. I think maybe it could go in the package |
47 |
> for quota? |
48 |
> |
49 |
> #!/sbin/runscript |
50 |
> |
51 |
> depend() { |
52 |
> need net |
53 |
> } |
54 |
> |
55 |
> start() { |
56 |
> ebegin "Starting Quota" |
57 |
> if [ -x /sbin/quotacheck ] |
58 |
> then |
59 |
> echo "Checking quotas. This make take some time." |
60 |
> /sbin/quotacheck -avug |
61 |
> echo "Done." |
62 |
> fi |
63 |
> if [ -x /sbin/quotaon ] |
64 |
> then |
65 |
> echo "Turning on quota" |
66 |
> /sbin/quotaon -avug |
67 |
> fi |
68 |
> eend $? |
69 |
> } |
70 |
> |
71 |
> stop() { |
72 |
> ebegin "Stopping quota" |
73 |
> if [ -x /sbin/quotaoff ] |
74 |
> then |
75 |
> echo "Turning quota off" |
76 |
> /sbin/quotaoff -avug |
77 |
> fi |
78 |
> eend $? |
79 |
> } |