From 7443835a05d727b0961951177de5ff8f451391db Mon Sep 17 00:00:00 2001 From: b0xxer Date: Thu, 10 Apr 2025 06:42:41 -0500 Subject: [PATCH] * Added HealthCmd, HealthInterval, HealthRetries, and HealthStartPeriod to bitcoin-node-container --- roles/apps/templates/bitcoin/bitcoin-node.container.j2 | 4 ++++ 1 file changed, 4 insertions(+) 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