diff --git a/roles/apps/templates/bitcoin/bitcoin-node.container.j2 b/roles/apps/templates/bitcoin/bitcoin-node.container.j2 index 9dd32aa..c04f5dd 100644 --- a/roles/apps/templates/bitcoin/bitcoin-node.container.j2 +++ b/roles/apps/templates/bitcoin/bitcoin-node.container.j2 @@ -17,6 +17,10 @@ Restart=always # Extend Timeout to allow time to pull the image TimeoutStartSec=900 TimeoutStopSec=300 +HealthCmd=/bin/sh -c "bitcoin-cli getblockchaininfo || exit 1" +HealthInterval=180s +HealthRetries=5 +HealthStartPeriod=1000s # ExecStartPre flag and other systemd commands can go here, see systemd.unit(5) man page. # ExecStartPre=/usr/share/mincontainer/setup.sh