Skip to content

Commit

Permalink
Wait for bitcoind and ord to become available (ordinals#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Aug 5, 2022
1 parent 3ae1cac commit 4c5ebd1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions deploy/setup
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ cp deploy/bitcoind.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable bitcoind
systemctl restart bitcoind
sleep 1

while [[ ! -f /var/lib/bitcoind/signet/.cookie ]]; do
echo Waiting for bitcoind…
sleep 1
done

setfacl -m ord:x /var/lib/bitcoind
setfacl -dm ord:r /var/lib/bitcoind
Expand All @@ -48,5 +52,7 @@ cp target/release/ord /usr/local/bin/ord
systemctl enable ord
systemctl restart ord

sleep 1
curl https://signet.ordinals.com/list
while ! curl --fail https://signet.ordinals.com/status; do
echo Waiting for ord…
sleep 1
done

0 comments on commit 4c5ebd1

Please sign in to comment.