Skip to content

Commit

Permalink
feat: nohup socat into the background, if configured (#221)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <wolf31o2@blinklabs.io>
  • Loading branch information
wolf31o2 authored Jan 21, 2025
1 parent 68e3738 commit e563da2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/run-node
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,13 @@ elif [[ ${RESTORE_SNAPSHOT} == true ]]; then
echo "Detected populated ${CARDANO_DATABASE_PATH}... skipping restore"
fi

cd ${CARDANO_DATABASE_PATH}

if [[ ${SOCAT_PORT:-0} != 0 ]]; then
echo "Port ${SOCAT_PORT} configured for socat... launching in background"
nohup socat TCP-LISTEN:${SOCAT_PORT},fork UNIX-CLIENT:${CARDANO_SOCKET_PATH},ignoreeof &
fi

if [[ ${CARDANO_BLOCK_PRODUCER} == true ]]; then
effopts=(--config ${CARDANO_CONFIG} \
--database-path ${CARDANO_DATABASE_PATH} \
Expand Down

0 comments on commit e563da2

Please sign in to comment.