Changeset 9d207bd for fedkit/make_hosts


Ignore:
Timestamp:
Sep 16, 2008 5:52:29 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:
7a8d667
Parents:
a8b42b5
Message:

seer support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedkit/make_hosts

    ra8b42b5 r9d207bd  
    11#!/bin/sh
     2
     3# find perl
     4if [ -x "/usr/bin/perl" ]; then
     5    PERL="/usr/bin/perl"
     6else
     7    if [ -x "/usr/local/bin/perl" ]; then
     8        PERL="/usr/local/bin/perl"
     9    else
     10        # Wing it...
     11        PERL="perl"
     12    fi
     13fi
     14
     15# Find this experiment's stashed scripts.  (Perl for advanced parsing)
     16EMUDIR="/usr/local/etc/emulab/"
     17PROJECT=`$EMUDIR/tmcc -b status | $PERL -ne '/ALLOCATED=([^\/]+)\/([^\s]+)/ && print "$1\n";'`
     18EXP=`$EMUDIR/tmcc -b status | $PERL -ne '/ALLOCATED=([^\/]+)\/([^\s]+)/ && print "$2\n";'`
     19SCRIPTDIR="/proj/$PROJECT/exp/$EXP/tmp"
    220
    321# Very simple script to copy the global hosts file over the local one
     
    1836        fi
    1937fi
     38
     39# XXX: modified seer daemon to read a config file.  Not in the tarfile yet.  If
     40# we see one, and there's a /usr/seer/backend/daemon.py, replace that one with
     41# the local one.
     42if [ -e /usr/seer/backend/daemon.py ] && [ -e $SCRIPTDIR/daemon.py ]; then
     43        /bin/cp $SCRIPTDIR/daemon.py /usr/seer/backend/daemon.py
     44fi
     45
     46if [ -e /usr/seer/backend/experiment-setup.py ] && [ -e $SCRIPTDIR/experiment-setup.py ]; then
     47        /bin/cp $SCRIPTDIR/experiment-setup.py /usr/seer/backend/experiment-setup.py
     48fi
     49
     50# Copy the seer.conf to the local /tmp if there is one
     51
     52if [ -e $SCRIPTDIR/seer.conf ]; then
     53        /bin/cp $SCRIPTDIR/seer.conf /tmp
     54fi
     55
    2056
    2157# SEER feels pain and confusion if times are wrong.  This lays a big lick on
Note: See TracChangeset for help on using the changeset viewer.