Keep Snap fullnode/drone logs out of syslog, we're too spammy

This commit is contained in:
Michael Vines
2018-07-17 13:31:24 -07:00
committed by Grimes
parent 4423ee6902
commit 5b0418793e
7 changed files with 29 additions and 19 deletions

View File

@@ -25,15 +25,8 @@ fi
tune_networking
# migrate from old ledger format? why not...
if [[ ! -f "$SOLANA_CONFIG_DIR"/ledger.log &&
-f "$SOLANA_CONFIG_DIR"/genesis.log ]]; then
(shopt -s nullglob &&
cat "$SOLANA_CONFIG_DIR"/genesis.log \
"$SOLANA_CONFIG_DIR"/tx-*.log) > "$SOLANA_CONFIG_DIR"/ledger.log
fi
# shellcheck disable=SC2086 # $program should not be quoted
exec $program \
set -xo pipefail
$program \
--identity "$SOLANA_CONFIG_DIR"/leader.json \
--ledger "$SOLANA_CONFIG_DIR"/ledger.log
--ledger "$SOLANA_CONFIG_DIR"/ledger.log \
2>&1 | $leader_logger