From f65a5e1213592d06e39b5eb97e31367ce2266be5 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sun, 25 Apr 2021 12:11:20 +0300 Subject: [PATCH] Notify on cron failures. --- crond/crontab | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crond/crontab b/crond/crontab index d816359..f01136d 100644 --- a/crond/crontab +++ b/crond/crontab @@ -1,3 +1,3 @@ -@daily docker exec mail_clamd_1 clamd-update -@daily docker exec mail_spamd_1 spamd-learn -@daily docker exec mail_spamd_1 spamd-update +@daily docker exec mail_clamd_1 clamd-update || wget --spider https://notify.shore.co.il/send?message=Clam%20update%20failed. +@daily docker exec mail_spamd_1 spamd-learn || wget --spider https://notify.shore.co.il/send?message=Spamd%20learn%20failed. +@daily docker exec mail_spamd_1 spamd-update || wget --spider https://notify.shore.co.il/send?message=Spamd%20update%20failed. -- GitLab