]> git.codecow.com Git - nano-pow.git/commitdiff
Sleep service startup a bit longer to allow server to spin up.
authorChris Duncan <chris@zoso.dev>
Tue, 17 Jun 2025 19:33:39 +0000 (12:33 -0700)
committerChris Duncan <chris@zoso.dev>
Tue, 17 Jun 2025 19:33:39 +0000 (12:33 -0700)
src/bin/nano-pow.sh

index 714c730b24ae8441b17f380a71aab9c4b53cb22d..0e9555f22980fd72adb5036452830838d20eb9d6 100755 (executable)
@@ -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;