Add proper per-file copyright notices/licenses and top-level license.
[bluesky.git] / microbench / setup / run-proxy
1 #!/bin/bash
2 #
3 # Start up the NFS server.
4
5 # Defaults
6 . /scratch/aws-keys
7 export BLUESKY_RUN_NAME=$(date +%Y%m%d)-$$
8 export BLUESKY_CACHE_SIZE=$((8 * 1024 * 1024))
9 export BLUESKY_TARGET=s3
10 #export BLUESKY_PROFILE_OUT=/export2/profile.txt
11
12 # Export any environment variables specified on the command line
13 for e in "$@"; do
14     echo "$e" 1>&2
15     if echo "$e" | grep = >/dev/null; then
16         eval "$e"
17         export ${e%=*}
18     fi
19 done
20
21 # Track system performance counter data
22 export BLUESKY_STATS_OUT=/export2/$BLUESKY_RUN_NAME.stats
23 /usr/lib/atsar/atsadc 5 17280 /export2/$BLUESKY_RUN_NAME.sadc &
24
25 if [ "$BLUESKY_TARGET" = "native" ]; then
26     /etc/init.d/nfs-kernel-server start
27 else
28     mkdir /export/journal 2>/dev/null
29     (cd /export; /scratch/bluesky.git/nfs3/nfsproxy)
30 fi