summaryrefslogtreecommitdiff
path: root/run_local.sh
diff options
context:
space:
mode:
authorMichael Basnight <mbasnight@gmail.com>2013-06-17 23:34:27 -0700
committerMichael Basnight <mbasnight@gmail.com>2013-06-21 20:15:23 +0000
commit9916c8f2733b683d859770d05dacd2c9c82912d7 (patch)
tree084a0d53580cbbd34ed8f28de9302d6c78f7050d /run_local.sh
parentbc90b3e088d3d4b83b5b3de0f9f83d9b6956947d (diff)
downloadpython-troveclient-0.1.3.tar.gz
Rename from reddwarf to trove.0.1.3
Implements Blueprint reddwarf-trove-rename Change-Id: Ib2d694c7466887ca297bea4250eca17cdc06b7bf
Diffstat (limited to 'run_local.sh')
-rwxr-xr-xrun_local.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/run_local.sh b/run_local.sh
index f4497bc..d496a68 100755
--- a/run_local.sh
+++ b/run_local.sh
@@ -9,9 +9,9 @@ me=${0##*/}
function print_usage() {
cat >&2 <<EOS
-Run tests against a local instance of reddwarf
+Run tests against a local instance of trove
-Usage: $me reddwarf_path [logfile]
+Usage: $me trove_path [logfile]
EOS
}
@@ -28,25 +28,25 @@ if [ $# -lt 1 ]; then
exit 5
fi
-reddwarf_path=$1
-reddwarf_pid_file="`pwd`.pid"
+trove_path=$1
+trove_pid_file="`pwd`.pid"
function start_server() {
server_log=`pwd`/rdserver.txt
set +e
rm $server_log
set -e
- pushd $reddwarf_path
- bin/start_server.sh --pid-file=$reddwarf_pid_file \
+ pushd $trove_path
+ bin/start_server.sh --pid-file=$trove_pid_file \
--override-logfile=$server_log
popd
}
function stop_server() {
- if [ -f $reddwarf_pid_file ];
+ if [ -f $trove_pid_file ];
then
- pushd $reddwarf_path
- bin/stop_server.sh $reddwarf_pid_file
+ pushd $trove_path
+ bin/stop_server.sh $trove_pid_file
popd
else
echo "The pid file did not exist, so not stopping server."