When using systemd and systemd-cron (instead of ISC vixie cron),
your cron jobs are marked as "failing" by systemd, because
they have non-zero exit status.
This is because you do
test1 && test2 && do something
So if test1 fails, it's a non-zero exit status, and it shows up in "systemctl --state=failed", and
"systemctl status" marks the whole system as "degraded".
Also systemd-crond sends an email about it, which vixie cron only does if there's stdout/stderr.
The fix is simple:
- test1 && test2 && do something
+ if test1 && test2; then do something; fi