From f31cc8e75dac8fe8d5d73620ced75074c67e1e39 Mon Sep 17 00:00:00 2001 From: shocknet-justin Date: Wed, 27 Aug 2025 23:51:52 -0400 Subject: [PATCH] clean logs --- scripts/extract_nprofile.sh | 4 ++-- scripts/start_services.sh | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/scripts/extract_nprofile.sh b/scripts/extract_nprofile.sh index 74b8add5..d5091423 100644 --- a/scripts/extract_nprofile.sh +++ b/scripts/extract_nprofile.sh @@ -15,8 +15,6 @@ get_log_info() { MAX_WAIT_TIME=360 # Maximum wait time in seconds (6 minutes) WAIT_INTERVAL=5 # Time to wait between checks in seconds - log "Checking wallet status... This may take a moment." - TIMESTAMP_FILE="/tmp/pub_install_timestamp" # Get the modification time of the timestamp file as a UNIX timestamp ref_timestamp=$(stat -c %Y "$TIMESTAMP_FILE") @@ -73,6 +71,8 @@ get_log_info() { sleep $WAIT_INTERVAL done + log "Checking wallet status... This may take a moment." + if [ -z "$latest_entry" ]; then log "Can't retrieve wallet status, check the service logs." exit 1 diff --git a/scripts/start_services.sh b/scripts/start_services.sh index 23b5e13d..1683d2d5 100755 --- a/scripts/start_services.sh +++ b/scripts/start_services.sh @@ -70,11 +70,6 @@ EOF exit 1 fi - if [ "$LND_STATUS" = "0" ] || [ "$LND_STATUS" = "1" ]; then - log "Giving ${SECONDARY_COLOR}LND${RESET_COLOR} a few seconds to start before starting ${SECONDARY_COLOR}Lightning.Pub${RESET_COLOR}..." - sleep 10 - fi - # Always attempt to start or restart Lightning.Pub if systemctl --user is-active --quiet lightning_pub; then if [ "$PUB_UPGRADE" = "100" ]; then