take multiple log files, allow restart of leader, validator
This commit is contained in:
parent
faedb88de0
commit
39354c06f8
|
@ -24,5 +24,6 @@ fi
|
||||||
# shellcheck disable=SC2086 # $program should not be quoted
|
# shellcheck disable=SC2086 # $program should not be quoted
|
||||||
exec $program \
|
exec $program \
|
||||||
-l "$SOLANA_CONFIG_DIR"/leader.json \
|
-l "$SOLANA_CONFIG_DIR"/leader.json \
|
||||||
< "$SOLANA_CONFIG_DIR"/genesis.log "$SOLANA_CONFIG_DIR"/tx-*.log \
|
< <(shopt -s nullglob && cat "$SOLANA_CONFIG_DIR"/genesis.log \
|
||||||
|
"$SOLANA_CONFIG_DIR"/tx-*.log) \
|
||||||
> "$SOLANA_CONFIG_DIR"/tx-"$(date -u +%Y%m%d%H%M%S%N)".log
|
> "$SOLANA_CONFIG_DIR"/tx-"$(date -u +%Y%m%d%H%M%S%N)".log
|
||||||
|
|
|
@ -72,4 +72,5 @@ ls -lh "$SOLANA_LEADER_CONFIG_DIR"
|
||||||
# shellcheck disable=SC2086 # $program should not be quoted
|
# shellcheck disable=SC2086 # $program should not be quoted
|
||||||
exec $program \
|
exec $program \
|
||||||
-l "$SOLANA_CONFIG_DIR"/validator.json -t "$leader_address:$leader_port" \
|
-l "$SOLANA_CONFIG_DIR"/validator.json -t "$leader_address:$leader_port" \
|
||||||
< "$SOLANA_LEADER_CONFIG_DIR"/genesis.log "$SOLANA_LEADER_CONFIG_DIR"/tx-*.log
|
< <(shopt -s nullglob && cat "$SOLANA_LEADER_CONFIG_DIR"/genesis.log \
|
||||||
|
"$SOLANA_LEADER_CONFIG_DIR"/tx-*.log)
|
||||||
|
|
Loading…
Reference in New Issue