Skip to content

Commit

Permalink
Issue #58: tweak start/stop Stone scripts [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
dalehenrich committed Mar 24, 2015
1 parent ccdb2d7 commit fbd400b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions bin/startStone
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ echo "================="

usage() {
cat <<HELP
USAGE: $(basename $0) [-h] [-C] [-N] [-R] [-w <waitstone-timeout>] <stone-name>
USAGE: $(basename $0) [-h] -b] [-C] [-N] [-R] [-w <waitstone-timeout>] <stone-name>
Start the stone process for the given stone.
OPTIONS
-b
Start netldi
-C
Startup for conversion.
-h
Expand All @@ -37,8 +39,10 @@ HELP
set -e # exit on error
waitTime=""
ARG=""
while getopts "hw:CNR" OPT ; do
startnetldi=""
while getopts "bhw:CNR" OPT ; do
case "$OPT" in
b) startnetldi="true" ;;
C)
if [ "${ARGS}x" != "x" ] ; then
echo "Only one of -C -N or -R options may be specified"
Expand Down Expand Up @@ -91,3 +95,7 @@ if [ "${waitTime}x" = "x" ] ; then
else
$stonePath/product/bin/waitstone $GEMSTONE_NAME $waitTime
fi

if [ "${startnetldi}" = "true" ] ; then
$GS_HOME/bin/startNetldi $stoneName
fi
2 changes: 1 addition & 1 deletion bin/stopStone
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if [ "${GS_HOME}x" = "x" ] ; then
echo "the GS_HOME environment variable needs to be defined"; exit 1
fi
stopNetldi=""
while getopts "hns:" OPT ; do
while getopts "bhns:" OPT ; do
case "$OPT" in
h) usage; exit 0;;
b) stopNetldi="true";;
Expand Down

0 comments on commit fbd400b

Please sign in to comment.