mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-10-11 14:37:12 +00:00
[Watchdog] Skip when use_watchdog=n
This commit is contained in:
1 parent
8c646f64b5
commit
68d7fa1504
2 files changed
+7
-1
No files matched your search
@@ -7,6 +7,12 @@ PARENT_PID=$$
|
||||
# Prepare
|
||||
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
|
||||
if [[ ! -p /tmp/com_pipe ]]; then
|
||||
mkfifo /tmp/com_pipe
|
||||
|
||||
Reference in new issue
Block a user