crontab: avoid generating output for routine checks
authorKristof Provost <kp@FreeBSD.org>
Mon, 19 Feb 2024 22:52:48 +0000 (23:52 +0100)
committerKristof Provost <kp@FreeBSD.org>
Mon, 19 Feb 2024 22:52:48 +0000 (23:52 +0100)
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

index 7704ef0..26df90f 100644 (file)
@@ -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