Skip to content

Commit a971ed4

Browse files
committed
feat: nohup socat into the background, if configured
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 68e3738 commit a971ed4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/run-node

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ elif [[ ${RESTORE_SNAPSHOT} == true ]]; then
123123
echo "Detected populated ${CARDANO_DATABASE_PATH}... skipping restore"
124124
fi
125125

126+
if [[ ${SOCAT_PORT:-0} != 0 ]]; then
127+
echo "Port ${SOCAT_PORT} configured for socat... launching in background"
128+
nohup socat TCP-LISTEN:${SOCAT_PORT},fork UNIX-CLIENT:${CARDANO_SOCKET_PATH},ignoreeof &
129+
fi
130+
126131
if [[ ${CARDANO_BLOCK_PRODUCER} == true ]]; then
127132
effopts=(--config ${CARDANO_CONFIG} \
128133
--database-path ${CARDANO_DATABASE_PATH} \

0 commit comments

Comments
 (0)