From 89cfd3b492d2b755c7d544e70c5089371ed68814 Mon Sep 17 00:00:00 2001 From: Dale Henrichs Date: Thu, 29 Jan 2015 16:49:54 -0800 Subject: [PATCH] Issue #25: /opt/gemstone/log is default if GEMSTONE_LOGDIR not defined --- bin/startGemServerGem | 6 +++++- bin/stopGemServerGem | 7 ++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/bin/startGemServerGem b/bin/startGemServerGem index 06403c3..25d824d 100755 --- a/bin/startGemServerGem +++ b/bin/startGemServerGem @@ -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-" diff --git a/bin/stopGemServerGem b/bin/stopGemServerGem index e27ab20..38b49cc 100755 --- a/bin/stopGemServerGem +++ b/bin/stopGemServerGem @@ -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`