Skip to content

Commit

Permalink
Improve launchpad script for GS64 to not fail if the netldi is alread…
Browse files Browse the repository at this point in the history
…y started
  • Loading branch information
gcotelli committed Apr 4, 2024
1 parent f46dc98 commit 6bf1dd4
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions docker/gs64/launchpad
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,18 @@ termination_handler() {

trap 'termination_handler' SIGTERM

# shellcheck disable=SC2086
startnetldi \
-g \
-a "${GS_USER}" \
-n \
-P "${NETLDI_PORT}" \
-l "${GEMSTONE_LOG_DIR}/${NETLDI_SERVICE_NAME}.log" \
-D "${GEMSTONE_LOG_DIR}" \
${NETLDI_ARGS:-} \
"${NETLDI_SERVICE_NAME}" >> "${GEMSTONE_LOG_DIR}/startnetldi.log"
if ! gslist -v -n "${NETLDI_SERVICE_NAME}" > /dev/null; then
# shellcheck disable=SC2086
startnetldi \
-g \
-a "${GS_USER}" \
-n \
-P "${NETLDI_PORT}" \
-l "${GEMSTONE_LOG_DIR}/${NETLDI_SERVICE_NAME}.log" \
-D "${GEMSTONE_LOG_DIR}" \
${NETLDI_ARGS:-} \
"${NETLDI_SERVICE_NAME}" >> "${GEMSTONE_LOG_DIR}/startnetldi.log"
fi

# list GemStone services
gslist -cvl >> "${GEMSTONE_LOG_DIR}/startnetldi.log"
Expand Down

0 comments on commit 6bf1dd4

Please sign in to comment.