mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-03 18:04:36 +02:00
Co-authored-by: jackstar12 <62219658+jackstar12@users.noreply.github.com> Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com> Co-authored-by: dni ⚡ <office@dnilabs.com>
27 lines
566 B
Bash
27 lines
566 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
boltzd --standalone --referralId lnbits &
|
|
|
|
# Capture boltzd PID to monitor if needed
|
|
BOLTZ_PID=$!
|
|
|
|
# Wait for boltzd to start
|
|
for i in {1..10}; do
|
|
if nc -z localhost 9002; then
|
|
echo "boltzd is up!"
|
|
break
|
|
fi
|
|
echo "Waiting for boltzd to start..."
|
|
sleep 1
|
|
done
|
|
|
|
# Optional: check if still not up
|
|
if ! nc -z localhost 9002; then
|
|
echo "boltzd did not start successfully."
|
|
exit 1
|
|
fi
|
|
|
|
echo "Starting LNbits on $LNBITS_HOST:$LNBITS_PORT..."
|
|
exec poetry run lnbits --port "$LNBITS_PORT" --host "$LNBITS_HOST" --forwarded-allow-ips='*'
|