summaryrefslogtreecommitdiff
path: root/pingd
blob: fc49d0f3780d48bd6d4598e8f78f7969fffc213a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/perl -wT

# (c) 2002 Peter Palfrader <peter@palfrader.org>
# $Id: pingd,v 1.2 2002/06/11 00:09:29 weasel Exp $
#

use strict;
use XML::Parser;
use XML::Dumper;
use Getopt::Long;
use lib '.';
use Echolot::Config;
use Echolot::Globals;
use Echolot::Storage::File;
#use Echolot::Scheduler;
use Echolot::Conf;
use Echolot::Mailin;

$ENV{'PATH'} = '/bin:/usr/bin';
delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'};

Echolot::Config::init();
Echolot::Globals::init();

#my $storage = new Echolot::Storage::File ( datadir => 'data' );
#my $conf = new Echolot::Conf( storage => $storage );

#$conf->send_requests();
 
#my @addr = $storage->get_query_addresses();

#require Data::Dumper;
#print Data::Dumper->Dump([Echolot::Globals::get()]);
#Echolot::Conf::send_requests();
Echolot::Mailin::process();

Echolot::Globals::get()->{'storage'}->commit();


# vim: set ts=4 shiftwidth=4: