Skip to content

Commit

Permalink
Merge pull request #26 from GsDevKit/dev
Browse files Browse the repository at this point in the history
Issue #25: /opt/gemstone/log is default if GEMSTONE_LOGDIR not defined
  • Loading branch information
dalehenrich committed Jan 30, 2015
2 parents 577953c + 89cfd3b commit eec8f96
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion bin/startGemServerGem
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ else
ExeArg="-e $3"
fi

logFile="${GEMSTONE_LOGDIR}/${GemServer}_server-${Port}.log"
logDir=${GEMSTONE_LOGDIR}
if [ "${logDir}x" = "x" ] ; then
logDir=/opt/gemstone/log
fi
logFile="${logDir}/${GemServer}_server-${Port}.log"

echo "Starting $GemServer on $Port exeConf: -$ExeConf- logFile: -$logFile-"

Expand Down
7 changes: 6 additions & 1 deletion bin/stopGemServerGem
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ GemServer="$1"
Port="$2"

# must match GemServer>>gemPidFileName:
pidfile="${GEMSTONE_LOGDIR}/${GemServer}_server-${Port}.pid"

logDir=${GEMSTONE_LOGDIR}
if [ "${logDir}x" = "x" ] ; then
logDir=/opt/gemstone/log
fi
pidfile="${logDir}/${GemServer}_server-${Port}.pid"

if [ -e $pidfile ]; then
pid=`cat $pidfile`
Expand Down

0 comments on commit eec8f96

Please sign in to comment.