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