line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# This file is generated from lib/MMM/Config.pm.in |
2
|
|
|
|
|
|
|
# Please change this file instead |
3
|
|
|
|
|
|
|
# Defaults config value for MMM |
4
|
|
|
|
|
|
|
# Check you're editing .in otherwise changes will be lost |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
package MMM::Config; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
MMM::Config - Default value for MMM |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=cut |
13
|
|
|
|
|
|
|
|
14
|
3
|
|
|
3
|
|
932
|
use strict; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
138
|
|
15
|
3
|
|
|
3
|
|
21
|
use warnings; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
102
|
|
16
|
3
|
|
|
3
|
|
28
|
use Exporter; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
824
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
our @ISA = qw(Exporter); |
19
|
|
|
|
|
|
|
our @EXPORT = grep { $_ ne 'BEGIN' } keys %{MMM::Config::}; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 VALUES |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head2 STATEDIR |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
Directory for working data |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=cut |
28
|
|
|
|
|
|
|
|
29
|
3
|
|
|
3
|
1
|
13
|
sub STATEDIR { '/var/lib/mmm' } |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head2 CONFIGFILE |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
The default config file location |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=cut |
36
|
|
|
|
|
|
|
|
37
|
0
|
|
|
0
|
1
|
0
|
sub CONFIGFILE { '/etc/mmm/mmm.cfg' } |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head2 MIRRORDIR |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
The location were static mirror list are stored |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=cut |
44
|
|
|
|
|
|
|
|
45
|
2
|
|
|
2
|
1
|
15
|
sub MIRRORDIR { '/etc/mmm' } |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head2 PIDFILE |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
The PID file path |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=cut |
52
|
|
|
|
|
|
|
|
53
|
0
|
|
|
0
|
1
|
0
|
sub PIDFILE { '/var/run/mmm/mmm.pid' } |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head2 PERIOD |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
The default delay between two sync |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=cut |
60
|
|
|
|
|
|
|
|
61
|
0
|
|
|
0
|
1
|
0
|
sub PERIOD { 120 } # in minutes |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head2 WAITAFTER_MINIMA |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Minimal time between two sync (pause) |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=cut |
68
|
|
|
|
|
|
|
|
69
|
0
|
|
|
0
|
1
|
0
|
sub WAITAFTER_MINIMA { 10 } # in minutes |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head2 MAX_TRY |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Count of try per mirror |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=cut |
76
|
|
|
|
|
|
|
|
77
|
0
|
|
|
0
|
1
|
0
|
sub MAX_TRY { 2 } |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head2 VERBOSITY |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
Default verbosity |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=cut |
84
|
|
|
|
|
|
|
|
85
|
5
|
|
|
5
|
1
|
41
|
sub VERBOSITY { 3 } |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=head2 LISTDELAY |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
Delay before remote mirrors list refresh |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=cut |
92
|
|
|
|
|
|
|
|
93
|
0
|
|
|
0
|
1
|
|
sub LISTDELAY { 10800 } # 3 heures |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=head2 SIZE_DELAY |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
Default delay between size calculation |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=cut |
100
|
|
|
|
|
|
|
|
101
|
0
|
|
|
0
|
1
|
|
sub SIZE_DELAY { 43200 } # 12 heures |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
1; |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
__END__ |