home · contact · privacy
Fix fetchmail erroring on harmless lack of new mail.
[config] / all_new_2018 / linkable_etc_files / mail / etc / systemd / system / fetchmail.service
index bd6792da99697e9a77b325a4a685ccdd5cf993d4..dc8acb44dd4e646b3755efa7c40372b09c635d8e 100644 (file)
@@ -4,4 +4,5 @@ Description=Run plom's fetchmail
 [Service]
 Type=oneshot
 User=plom
-ExecStart=/bin/sh -c 'fetchmail'
+# fetchmail returns 1 when no new mail, we want to catch that
+ExecStart=/bin/sh -c 'fetchmail || [ $? -eq 1 ]'