c3013c714a4e10bdaa623fe72deb9ae23148bdeb
[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_CACHE_SIZE=$((512 * 1024))
8 export BLUESKY_TARGET=s3
9 export BLUESKY_PROFILE_OUT=/export2/profile.txt
10
11 # Export any environment variables specified on the command line
12 for e in "$@"; do
13     echo "$e" 1>&2
14     if echo "$e" | grep = >/dev/null; then
15         eval "$e"
16         export ${e%=*}
17     fi
18 done
19
20 if [ "$BLUESKY_TARGET" = "native" ]; then
21     /etc/init.d/nfs-kernel-server start
22 else
23     mkdir /export/journal 2>/dev/null
24     (cd /export; /scratch/bluesky.git/nfs3/nfsproxy)
25 fi