Changeset 8034579 for fedkit/splitter.pl


Ignore:
Timestamp:
Apr 10, 2008 5:00:03 PM (16 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
33e3537
Parents:
f64fa81
Message:

event repeater starts remotely

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedkit/splitter.pl

    rf64fa81 r8034579  
    1010
    1111my @scripts = ("fed_bootstrap", "federate.sh", "smbmount.pl",
    12     "make_hosts", "fed-tun.pl");
     12    "make_hosts", "fed-tun.pl", "fed_evrepeater" );
    1313my $local_script_dir = ".";
    1414my($pid, $gid);                 # Process and group IDs for calling parse.tcl
     
    638638        my $ddomain =                           # domain for the destination
    639639            $tbparams->{$dtb}->{'domain'};
    640         my $sproject =                          # Project of the destination
     640        my $sproject =                          # Project of the source
    641641            $tbparams->{$gateways}->{'project'};
     642        my $dproject =                          # Project of the destination
     643            $tbparams->{$dtb}->{'project'};
    642644        my $fs =                                # Master fs node (FQDN)
    643645            $tbparams->{$master}->{'fs'} .  $tbparams->{$master}->{'domain'};
     
    648650            $tbparams->{$master}->{'domain'};
    649651        my $remote_script_dir =                 # Remote fed script location
    650             "/proj/" . $tbparams->{$dtb}->{'project'} . "/exp/$eid/tmp";
     652            "/proj/" . $dproject . "/exp/$eid/tmp";
     653        my $local_script_dir =                  # Local fed script location
     654            "/proj/" . $sproject . "/exp/$eid/tmp";
    651655        my $active;                             # Is this the active side of
    652656                                                # the connector?
     
    656660
    657661        my $conf_file = "$myname$sdomain.gw.conf";
     662        my $remote_conf_file = "$desthost$ddomain.gw.conf";
    658663        # translate to lower case so the `hostname` hack for specifying
    659664        # configuration files works.
    660665        $conf_file =~ tr/A-Z/a-z/;
     666        $remote_conf_file =~ tr/A-Z/a-z/;
    661667
    662668        # If either end of this link is in the master side of the testbed, that
     
    684690        print $gwconfig "Type: $type\n";
    685691        print $gwconfig "RemoteScriptDir: $remote_script_dir\n";
     692        print $gwconfig "EventRepeater: $local_script_dir/fed_evrepeater\n";
     693        print $gwconfig "RemoteExperiment: $dproject/$eid\n";
     694        print $gwconfig "LocalExperiment: $sproject/$eid\n";
     695        print $gwconfig "RemoteConfigFile: " .
     696            "$remote_script_dir/$remote_conf_file\n";
    686697        print $gwconfig "Peer: $desthost$ddomain\n";
    687698        print $gwconfig "Pubkeys: " .
Note: See TracChangeset for help on using the changeset viewer.