sub init
{
my $t0 = [gettimeofday];
- dbg("AnnTalk: loading up to $maxcache announcements into cache");
@anncache = DXLog::search(0, $maxcache, $main::systime, 'ann');
shift @anncache while @anncache > $maxcache;
my $l = @anncache;
do "$param" if -e "$param";
# read in existing data
my $t0 = [gettimeofday];
- dbg(sprintf "WWV read in upto %d records into cache", $maxcache);
@cache = readfile($main::systime);
shift @cache while @cache > $maxcache;
dbg(sprintf "WWV read in last %d records into cache in %dmS", scalar @cache, _diffms($t0));
if ($spotcachedays > 0) {
my $t0 = [gettimeofday];
$spotcachedays = 2 if $spotcachedays < 2;
- dbg "Spot::init - reading in $spotcachedays days of spots into cache";
for (my $i = 0; $i < $spotcachedays; ++$i) {
my $now = $today->sub($i);
my $fh = $fp->open($now);
# initialise the Geomagnetic data engine
- dbg("Start WWV");
+ dbg("Start WWV system");
Geomag->init();
- dbg("Start WCY");
+ dbg("Start WCY system");
WCY->init();
+ dbg("Start Announce and Talk system");
AnnTalk::init(); # initialise announce cache
Spot->init();
# read in any existing message headers and clean out old crap
- dbg("reading existing message headers ...");
+ dbg("Reading existing Message/Bulletine headers ...");
DXMsg->init();
DXMsg::clean_old();
# read in any cron jobs
- dbg("reading cron jobs ...");
+ dbg("Reading cron jobs ...");
DXCron->init();
# read in database desriptors
- dbg("reading database descriptors ...");
+ dbg("Reading database descriptors ...");
DXDb::load();
- dbg("starting RBN ...");
+ dbg("Rtarting RBN ...");
RBN::init();
# starting local stuff
- dbg("doing local initialisation ...");
+ dbg("Starting DXQsl system");
QSL::init(1);
+
+ dbg("Ooing local initialisations ...");
if (defined &Local::init) {
eval {
Local::init();
# this, such as it is, is the main loop!
- dbg("orft we jolly well go ...");
+ dbg("Orft we jolly well go ...");
#open(DB::OUT, "|tee /tmp/aa");
}