From 8d957a943e2943bd0195618a66c0bc4e5bbec9a2 Mon Sep 17 00:00:00 2001 From: Kristof Provost Date: Mon, 19 Feb 2024 23:52:48 +0100 Subject: [PATCH] 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. --- image/overlay/domotica/var/cron/tabs/root | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.51.0