From: Christian Heller Date: Sun, 16 Dec 2018 03:54:46 +0000 (+0100) Subject: Fix fetchmail erroring on harmless lack of new mail. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/static/%7B%7Bdb.prefix%7D%7D/%7B%7Bprefix%7D%7D?a=commitdiff_plain;h=5dd540eb272c50667d97c84a7100528aa1aff154;p=config Fix fetchmail erroring on harmless lack of new mail. --- diff --git a/all_new_2018/linkable_etc_files/mail/etc/systemd/system/fetchmail.service b/all_new_2018/linkable_etc_files/mail/etc/systemd/system/fetchmail.service index bd6792d..dc8acb4 100644 --- a/all_new_2018/linkable_etc_files/mail/etc/systemd/system/fetchmail.service +++ b/all_new_2018/linkable_etc_files/mail/etc/systemd/system/fetchmail.service @@ -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 ]'