Changeset 291423b


Ignore:
Timestamp:
Sep 15, 2008 5:35:11 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:
a8b42b5
Parents:
c52c48d
Message:

SEER config support

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_create_experiment.py

    rc52c48d r291423b  
    3232    scripts = ["fed_bootstrap", "federate.sh", "smbmount.FreeBSD.pl",
    3333        "smbmount.Linux.pl", "make_hosts", "fed-tun.pl", "fed-tun.ucb.pl",
    34         "fed_evrepeater", "rc.accounts.patch"]
     34        "fed_evrepeater", "rc.accounts.patch", "daemon.py",
     35        "experiment-setup.py"]
    3536   
    3637    def __init__(self,
     
    940941                            raise service_error(service_error.internal,
    941942                                    "Error creating client config")
     943                        try:
     944                            cc = open("%s/%s/seer.conf" %
     945                                    (self.tmpdir, self.current_gateways), 'w')
     946                            print >>cc, "ControlNode: %s" % \
     947                                    self.control_gateway
     948                            print >>cc, "ExperimentID: %s/%s" % \
     949                                    ( tbparams[self.master]['project'], \
     950                                    self.eid )
     951                            cc.close()
     952                        except IOError:
     953                            raise service_error(service_error.internal,
     954                                    "Error creating seer config")
    942955                    else:
    943956                        if self.trace_file:
  • fedkit/federate.sh

    rc52c48d r291423b  
    7474SMBUSER=`$PERL -ne '/ProjectUser:\s+(.*)/i && print "$1\n";' $SCRIPTDIR/client.conf`
    7575SMBPROJECT=`$PERL -ne '/ProjectName:\s+(.*)/i && print "$1\n";' $SCRIPTDIR/client.conf`
     76
     77# XXX: modified seer daemon to read a config file.  Not in the tarfile yet.  If
     78# we see one, and there's a /usr/seer/backend/daemon.py, replace that one with
     79# the local one.
     80if [ -e /usr/seer/backend/daemon.py ] && [ -e $SCRIPTDIR/daemon.py ]; then
     81        /bin/cp $SCRIPTDIR/daemon.py /usr/seer/backend/daemon.py
     82fi
     83
     84if [ -e /usr/seer/backend/experiment-setup.py ] && [ -e $SCRIPTDIR/experiment-setup.py ]; then
     85        /bin/cp $SCRIPTDIR/experiment-setup.py /usr/seer/backend/experiment-setup.py
     86fi
     87
     88# Copy the seer.conf to the local /tmp if there is one
     89
     90if [ -e $SCRIPTDIR/seer.conf ]; then
     91        /bin/cp $SCRIPTDIR/seer.conf /tmp
     92fi
    7693
    7794GWIP=`host -N 10 $GATEWAY | $PERL -ne 's/.* has address // && print;'`
Note: See TracChangeset for help on using the changeset viewer.