Skip to content

Commit

Permalink
Issue #27: add GEMSTONE_USER_NAME as option for defined the gemstone …
Browse files Browse the repository at this point in the history
…user
  • Loading branch information
dalehenrich committed Feb 2, 2015
1 parent 4c96185 commit 11a422d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/startGemServerGem
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,16 @@ if [ "${logDir}x" = "x" ] ; then
fi
logFile="${logDir}/${GemServer}_server-${Port}.log"

username=$GEMSTONE_USER_NAME
if [ "${GEMSTONE_USER_NAME}x" = "x" ] ; then
username=DataCurator
fi

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

cat << EOF | nohup $GEMSTONE/bin/topaz -l ${ExeArg} >> $logFile 2>&1 &
set user DataCurator pass $GEMSTONE_CURATOR_PASS gems $GEMSTONE_NAME
set user $username pass $GEMSTONE_CURATOR_PASS gems $GEMSTONE_NAME
display oops
iferror stack
Expand Down

0 comments on commit 11a422d

Please sign in to comment.