X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=perl%2Fcluster.pl;h=d4e9981a2e3df54c649d2dbd806139041ef7f316;hb=b06fd1d447d5411d8d441e807f93efa897b68aaf;hp=c9b49182d09f9965c7174e295bd833649f514525;hpb=309eea6bcd4a0eaf25f810168bc38dc348c2a982;p=spider.git diff --git a/perl/cluster.pl b/perl/cluster.pl index c9b49182..d4e9981a 100755 --- a/perl/cluster.pl +++ b/perl/cluster.pl @@ -660,14 +660,14 @@ sub setup_start dbg("Start WCY"); WCY->init(); - # initial the Spot stuff - dbg("Starting DX Spot system"); - Spot->init(); - # initialise the protocol engine dbg("Start Protocol Engines ..."); DXProt->init(); + # read startup script + my $script = new Script "startup"; + $script->run($main::me) if $script; + # put in a DXCluster node for us here so we can add users and take them away $routeroot = Route::Node->new($mycall, $version*100+5300, Route::here($main::me->here)|Route::conf($main::me->conf)); $routeroot->do_pc9x(1); @@ -679,6 +679,10 @@ sub setup_start # $Route::filterdef->cmd($main::me, 'route', 'accept', "node_default call $mycall" ); #} + # initial the Spot stuff + dbg("Starting DX Spot system"); + Spot->init(); + # read in any existing message headers and clean out old crap dbg("reading existing message headers ..."); DXMsg->init(); @@ -708,8 +712,6 @@ sub setup_start # this, such as it is, is the main loop! dbg("orft we jolly well go ..."); - my $script = new Script "startup"; - $script->run($main::me) if $script; #open(DB::OUT, "|tee /tmp/aa"); }