Skip to content

Commit

Permalink
Move disk healthcheck to hourly
Browse files Browse the repository at this point in the history
  • Loading branch information
demyxco committed Feb 21, 2024
1 parent 4cbaa65 commit 7377be3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions function/cron.sh
Expand Up @@ -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" \
Expand Down Expand Up @@ -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" \
Expand Down

0 comments on commit 7377be3

Please sign in to comment.