From 5dd540eb272c50667d97c84a7100528aa1aff154 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sun, 16 Dec 2018 04:54:46 +0100 Subject: [PATCH] Fix fetchmail erroring on harmless lack of new mail. --- .../mail/etc/systemd/system/fetchmail.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ]' -- 2.30.2