Changeset 63f7c7e for fedkit/federate.sh
- Timestamp:
- Sep 4, 2007 6:52:58 PM (17 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
- Children:
- c23025e
- Parents:
- 61f19e0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedkit/federate.sh
r61f19e0 r63f7c7e 3 3 BOSSNODE="/usr/local/etc/emulab/bossnode" 4 4 # GATEWAY="detertunnel" 5 6 PORTS="139 7777" 7 NC="/usr/bin/nc" 8 RCDIR="/usr/local/etc/emulab/rc" 9 10 RCACCT="rc.accounts" 11 SMBMOUNT="smbmount.pl" 5 12 6 13 if [ -f $BOSSNODE ] … … 10 17 11 18 EMUDIR="/usr/local/etc/emulab/" 19 20 # Find this experiment's stashed scripts. (Perl for advanced parsing) 21 SCRIPTDIR=`$EMUDIR/tmcc -b status | perl -ne '/ALLOCATED=([^\/]+)\/([^\s]+)/ && print "/proj/$1/exp/$2/tmp\n";'` 22 23 # Die if things are weird 24 if [ -z "$SCRIPTDIR" ] ; then 25 echo "Can't find federation scripts. Tmcc status says:" 26 $EMUDIR/tmcc -b status 27 exit 1; 28 fi 29 30 # Move the SMB mounting script out of NFS so we can call it after the umount 31 cp "$SCRIPTDIR/$SMBMOUNT" /tmp 32 33 # Copy the global hostnames file into /etc/hosts so this node can address 34 # others in the experiment on other testbeds. 35 grep 127\\.0\\.0\\.1 /etc/hosts > /tmp/hosts 36 cat "$SCRIPTDIR/hosts" >> /tmp/hosts 37 cp /tmp/hosts /etc/hosts && rm /tmp/hosts 38 12 39 GATEWAY=`$EMUDIR/tmcc -b syncserver | awk ' { match($0, /SERVER=[^[:space:]]+/); print substr($0,RSTART+8,RLENGTH-9);}'` 13 14 PORTS="139 7777"15 NC="/usr/bin/nc"16 RCDIR="/usr/local/etc/emulab/rc"17 18 RCACCT="rc.accounts"19 SMBMOUNT="smbmount.pl"20 40 21 41 # … … 43 63 echo $GATEWAY > $BOSSNODE 44 64 65 45 66 # 46 67 # Unmount stuff before messing with accounts … … 60 81 echo "Mounting via SMB." 61 82 62 exec $EMUDIR/$SMBMOUNT83 exec "/tmp/$SMBMOUNT"
Note: See TracChangeset
for help on using the changeset viewer.