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`