rcstack stack-monitor restart-unhealthy¶
monitor stack containers that are unhealthy and restart them
Usage¶
rcstack stack-monitor restart-unhealthy [OPTIONS]
Examples¶
# check and restart for unhealthy containers
./rcstack stack-monitor restart-unhealthy
# check and restart for unhealthy containers, and continue in a loop every 5 minutes (300s)
./rcstack stack-monitor restart-unhealthy --loop=300
# run this script in background with logs
nohup ./rcstack stack-monitor restart-unhealthy --loop=300 > unhealthy-checks.log &
Options¶
–loop LOOP¶
run in a loop to monitor continuously every N seconds
Attributes |
|
---|---|
Default Value: |
0 |