X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=microbench%2Fsetup%2Fstop-proxy;h=482a7e441fe77c8f6c9a766874b23edae8a37b4b;hb=536dd54d55f99936ffcdb3eaa39d44f5ec3114a3;hp=4d506f8b8d280660040387a852b55059e8d62660;hpb=6ad07955196b37a90cfe31dd3a4174842efca39b;p=bluesky.git diff --git a/microbench/setup/stop-proxy b/microbench/setup/stop-proxy index 4d506f8..482a7e4 100755 --- a/microbench/setup/stop-proxy +++ b/microbench/setup/stop-proxy @@ -1,3 +1,17 @@ #!/bin/bash -pkill -INT nfsproxy +export BLUESKY_TARGET=s3 +# Export any environment variables specified on the command line +for e in "$@"; do + echo "$e" 1>&2 + if echo "$e" | grep = >/dev/null; then + eval "$e" + export ${e%=*} + fi +done + +if [ "$BLUESKY_TARGET" = "native" ]; then + /etc/init.d/nfs-kernel-server stop +else + pkill -INT nfsproxy +fi