X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=all_new_2018%2Flinkable_etc_files%2Fmail%2Fetc%2Fsystemd%2Fsystem%2Ffetchmail.service;fp=all_new_2018%2Flinkable_etc_files%2Fmail%2Fetc%2Fsystemd%2Fsystem%2Ffetchmail.service;h=dc8acb44dd4e646b3755efa7c40372b09c635d8e;hb=5dd540eb272c50667d97c84a7100528aa1aff154;hp=bd6792da99697e9a77b325a4a685ccdd5cf993d4;hpb=67f74adea42ed093787c287342217c8f8bc9c878;p=config 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 ]'