[Watchdog] Skip when use_watchdog=n
parent
8c646f64b5
commit
68d7fa1504
|
@ -7,6 +7,12 @@ PARENT_PID=$$
|
||||||
# Prepare
|
# Prepare
|
||||||
BACKGROUND_TASKS=()
|
BACKGROUND_TASKS=()
|
||||||
|
|
||||||
|
if [[ "${USE_WATCHDOG}" =~ ^([nN][oO]|[nN])+$ ]]; then
|
||||||
|
log_f "USE_WATCHDOG=n, skipping watchdog..."
|
||||||
|
sleep 365d
|
||||||
|
exec $(readlink -f "$0")
|
||||||
|
fi
|
||||||
|
|
||||||
# Checks pipe their corresponding container name in this pipe
|
# Checks pipe their corresponding container name in this pipe
|
||||||
if [[ ! -p /tmp/com_pipe ]]; then
|
if [[ ! -p /tmp/com_pipe ]]; then
|
||||||
mkfifo /tmp/com_pipe
|
mkfifo /tmp/com_pipe
|
||||||
|
|
|
@ -296,7 +296,7 @@ services:
|
||||||
- /lib/modules:/lib/modules:ro
|
- /lib/modules:/lib/modules:ro
|
||||||
|
|
||||||
watchdog-mailcow:
|
watchdog-mailcow:
|
||||||
image: mailcow/watchdog:1.2
|
image: mailcow/watchdog:1.3
|
||||||
build: ./data/Dockerfiles/watchdog
|
build: ./data/Dockerfiles/watchdog
|
||||||
init: false
|
init: false
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Reference in New Issue