[Watchdog] Skip when use_watchdog=n

master
andryyy 2017-10-03 12:07:48 +02:00
parent 68d7fa1504
commit c59d03fcb3
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ PARENT_PID=$$
BACKGROUND_TASKS=()
if [[ "${USE_WATCHDOG}" =~ ^([nN][oO]|[nN])+$ ]]; then
log_f "USE_WATCHDOG=n, skipping watchdog..."
echo -e "$(date) - USE_WATCHDOG=n, skipping watchdog..."
sleep 365d
exec $(readlink -f "$0")
fi