From: Chris Duncan Date: Tue, 17 Jun 2025 19:33:39 +0000 (-0700) Subject: Sleep service startup a bit longer to allow server to spin up. X-Git-Tag: v5.0.0~2 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=0aadbee792cf3be9b98fc5ffd2a28d811f9b8746;p=nano-pow.git Sleep service startup a bit longer to allow server to spin up. --- diff --git a/src/bin/nano-pow.sh b/src/bin/nano-pow.sh index 714c730..0e9555f 100755 --- a/src/bin/nano-pow.sh +++ b/src/bin/nano-pow.sh @@ -11,7 +11,7 @@ mkdir -p "$NANO_POW_LOGS"; if [ "$1" = '--server' ]; then shift; node --max-http-header-size=1024 --max-old-space-size=256 "$SCRIPT_DIR"/server.js >> "$NANO_POW_LOGS"/nano-pow-server-$(date -I).log 2>&1 & - sleep 0.1; + sleep 1; if [ "$(ps | grep $(cat $NANO_POW_HOME/server.pid))" = '' ]; then cat $(ls -td "$NANO_POW_LOGS"/* | head -n1); fi;