X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fcluster.pl;h=e98dd156996eaafc1a175e26236c3b1e9501be3c;hb=e5b0e3dee551a224de284a5ba550098256fcb268;hp=f9bc45ffc1d797c80a702048e0107ad76711ef86;hpb=1cf4bd14be226274d5deb05da8480ab91a5dac52;p=spider.git diff --git a/perl/cluster.pl b/perl/cluster.pl index f9bc45ff..e98dd156 100755 --- a/perl/cluster.pl +++ b/perl/cluster.pl @@ -26,6 +26,8 @@ use DXCommandmode; use DXProt; use DXCluster; use DXDebug; +use Prefix; +use Bands; package main; @@ -159,10 +161,20 @@ foreach(@debug) { } STDOUT->autoflush(1); +# load Prefixes +print "loading prefixes ...\n"; +Prefix::load(); + +# load band data +print "loading band data ...\n"; +Bands::load(); + # initialise User file system +print "loading user file system ...\n"; DXUser->init($userfn); # start listening for incoming messages/connects +print "starting listener ...\n"; Msg->new_server("$clusteraddr", $clusterport, \&login); # prime some signals @@ -170,7 +182,11 @@ $SIG{'INT'} = \&cease; $SIG{'TERM'} = \&cease; $SIG{'HUP'} = 'IGNORE'; +# initialise the protocol engine +DXProt->init(); + # this, such as it is, is the main loop! +print "orft we jolly well go ...\n"; for (;;) { my $timenow; Msg->event_loop(1, 0.001);