From 7377be359f2d1e8d4ea4eec29365d4cefcd674d8 Mon Sep 17 00:00:00 2001 From: Demyx Date: Tue, 20 Feb 2024 23:01:14 -0800 Subject: [PATCH] Move disk healthcheck to hourly --- function/cron.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/function/cron.sh b/function/cron.sh index 75bf5fb..ed6040c 100644 --- a/function/cron.sh +++ b/function/cron.sh @@ -107,10 +107,6 @@ demyx_cron_daily() { demyx_execute "[CROND DAILY] Rotating logs" \ "logrotate --log=${DEMYX_LOG}/logrotate.log ${DEMYX_CONFIG}/logrotate.conf" - # Healthchecks - demyx_execute "[CROND MINUTE] Healthcheck - Disk" \ - "demyx_healthcheck disk" - # Execute custom cron if [[ -f "$DEMYX"/custom/cron/daily.sh ]]; then demyx_execute "[CROND DAILY] Executing ${DEMYX}/custom/cron/daily.sh" \ @@ -139,6 +135,11 @@ demyx_cron_five_minute() { # demyx_cron_hourly() { demyx_event + + # Disk healthcheck + demyx_execute "[CROND DAILY] Healthcheck - Disk" \ + "demyx_healthcheck disk" + # Execute custom cron if [[ -f "$DEMYX"/custom/cron/hourly.sh ]]; then demyx_execute "[CROND HOURLY] Executing ${DEMYX}/custom/cron/hourly.sh" \