* Added HealthCmd, HealthInterval, HealthRetries, and HealthStartPeriod
to bitcoin-node-container
This commit is contained in:
parent
cdfd6a6fa6
commit
7443835a05
@ -17,6 +17,10 @@ Restart=always
|
|||||||
# Extend Timeout to allow time to pull the image
|
# Extend Timeout to allow time to pull the image
|
||||||
TimeoutStartSec=900
|
TimeoutStartSec=900
|
||||||
TimeoutStopSec=300
|
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 flag and other systemd commands can go here, see systemd.unit(5) man page.
|
||||||
# ExecStartPre=/usr/share/mincontainer/setup.sh
|
# ExecStartPre=/usr/share/mincontainer/setup.sh
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user