/[pdpsoft]/nl.nikhef.pdp.fetchcrl/trunk/fetch-crl3.pl.cin
ViewVC logotype

Diff of /nl.nikhef.pdp.fetchcrl/trunk/fetch-crl3.pl.cin

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2603 by davidg, Wed Jan 30 08:22:08 2013 UTC revision 2604 by davidg, Mon Feb 25 11:59:39 2013 UTC
# Line 46  use vars qw/ $log $cnf /; Line 46  use vars qw/ $log $cnf /;
46  #  #
47  ($cnf,$log) = &init_configuration();  ($cnf,$log) = &init_configuration();
48    
49    # use Net::INET6Glue if so requested (is not a default module)
50    if ( $cnf->{_}->{inet6glue} ) {
51      eval { require Net::INET6Glue or die; };
52      $@ and die "Please install Net::INET6Glue before enabling inet6glue config\n";
53    }
54    
55  # verify local installation sanity for loaded modules  # verify local installation sanity for loaded modules
56  $::log->getverbose > 6 and ! $use_DataDumper and  $::log->getverbose > 6 and ! $use_DataDumper and
57    $::log->err("Cannot set verbosity higher than 6 without Data::Dumper") and    $::log->err("Cannot set verbosity higher than 6 without Data::Dumper") and
# Line 114  sub init_configuration() { Line 120  sub init_configuration() {
120    my $randomwait;    my $randomwait;
121    my $nosymlinks;    my $nosymlinks;
122    my $cfgdir;    my $cfgdir;
123      my $inet6glue=0;
124    
125    $log = FCLog->new("qualified");    $log = FCLog->new("qualified");
126    
# Line 134  sub init_configuration() { Line 141  sub init_configuration() {
141      "nosymlinks+" => \$nosymlinks,      "nosymlinks+" => \$nosymlinks,
142      "a|agingtolerance=i" => \$agingtolerance,      "a|agingtolerance=i" => \$agingtolerance,
143      "r|randomwait=i" => \$randomwait,      "r|randomwait=i" => \$randomwait,
144        "inet6glue+" => \$inet6glue,
145      ) or &help and exit(1);      ) or &help and exit(1);
146    
147    $help and &help and exit(0);    $help and &help and exit(0);
# Line 169  sub init_configuration() { Line 177  sub init_configuration() {
177    $cnf->{_}->{parallelism}    = $parallelism if $parallelism;    $cnf->{_}->{parallelism}    = $parallelism if $parallelism;
178    $cnf->{_}->{randomwait}     = $randomwait if defined $randomwait;    $cnf->{_}->{randomwait}     = $randomwait if defined $randomwait;
179    $cnf->{_}->{nosymlinks}     = $nosymlinks if defined $nosymlinks;    $cnf->{_}->{nosymlinks}     = $nosymlinks if defined $nosymlinks;
180      $cnf->{_}->{inet6glue}      = $inet6glue if $inet6glue;
181    
182    # deal with interaction of verbosity in logfile and quiet option    # deal with interaction of verbosity in logfile and quiet option
183    # since a noquiet config option can cancel it    # since a noquiet config option can cancel it
# Line 203  sub init_configuration() { Line 212  sub init_configuration() {
212    $cnf->{_}->{nosymlinks}     ||= 0;    $cnf->{_}->{nosymlinks}     ||= 0;
213    $cnf->{_}->{verbosity}      ||= 0;    $cnf->{_}->{verbosity}      ||= 0;
214    $cnf->{_}->{debuglevel}     ||= 0;    $cnf->{_}->{debuglevel}     ||= 0;
215      $cnf->{_}->{inet6glue}      ||= 0;
216    
217    $cnf->{_}->{stateless} and delete $cnf->{_}->{statedir};    $cnf->{_}->{stateless} and delete $cnf->{_}->{statedir};
218    

Legend:
Removed from v.2603  
changed lines
  Added in v.2604

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28