#!/bin/sh
#
echo Starting the servers
echo Started on the following date > mypid.txt
date >> mypid.txt
phase0
sleep 60
echo Starting the clients
dowakeupclients &
ps -l >> mypid.txt
sleep 3600
echo Starting phase1
phase1
sleep 3600
echo Starting phase1 for server crashes
phase1
sleep 10
echo Destroying the first server
destroy lilac.ece.northwestern.edu:8080
sleep 600
echo Destroying the second server
destroy coke.stanford.edu:1024
sleep 600
echo Destroying the third server
destroy london.cs.uni-sb.de:8080
sleep 1800
echo Stopping the tests
phase3
echo Tests are completed.

# reminder: run this script as a background process
