Show
Ignore:
Timestamp:
09/16/08 17:52:29 (4 years ago)
Author:
Ted Faber <faber@…>
Children:
7a8d667972e8db4da477c0270c54dab48255d853
Parents:
a8b42b50629f13b6fcbf8d4af28d22a065cf5511
git-committer:
Ted Faber <faber@isi.edu> / 2008-09-17T00:52:29Z+0000
Message:

seer support

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • fedkit/make_hosts

    r7add1a3 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