"working" version of spot cache
[spider.git] / perl / cluster.pl
index 4c0f374c3eca9bfc54304b4826bef353bb851bab..d4e9981a2e3df54c649d2dbd806139041ef7f316 100755 (executable)
@@ -664,19 +664,26 @@ sub setup_start
        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);
+       $routeroot->via_pc92(1);
+
        # make sure that there is a routing OUTPUT node default file
        #unless (Filter::read_in('route', 'node_default', 0)) {
        #       my $dxcc = $main::me->dxcc;
        #       $Route::filterdef->cmd($main::me, 'route', 'accept', "node_default call $mycall" );
        #}
 
-       my $script = new Script "startup";
-    $script->run($main::me) if $script;
-
        # initial the Spot stuff
        dbg("Starting DX Spot system");
-       Spot->init();   #
-       
+       Spot->init();
+
+       # read in any existing message headers and clean out old crap
        dbg("reading existing message headers ...");
        DXMsg->init();
        DXMsg::clean_old();