From: Kristof Provost Date: Mon, 19 Feb 2024 22:52:48 +0000 (+0100) Subject: crontab: avoid generating output for routine checks X-Git-Url: https://git.sigsegv.be/?a=commitdiff_plain;h=8d957a943e2943bd0195618a66c0bc4e5bbec9a2;p=pennestraat-domotica crontab: avoid generating output for routine checks If autossh is still running we shouldn't generate output, because otherwise we'll end up creating a mail every 5 minutes. --- diff --git a/image/overlay/domotica/var/cron/tabs/root b/image/overlay/domotica/var/cron/tabs/root index 7704ef0..26df90f 100644 --- a/image/overlay/domotica/var/cron/tabs/root +++ b/image/overlay/domotica/var/cron/tabs/root @@ -1,2 +1,2 @@ 1 5 * * * /home/kp/bin/ansible_poll -*/5 * * * * /etc/rc.d/autossh status || /etc/rc.d/autossh start +*/5 * * * * /etc/rc.d/autossh status >/dev/null || /etc/rc.d/autossh start