home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix fetchmail erroring on harmless lack of new mail.
[config]
/
all_new_2018
/
linkable_etc_files
/
mail
/
etc
/
systemd
/
system
/
fetchmail.service
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 bd6792da99697e9a77b325a4a685ccdd5cf993d4..dc8acb44dd4e646b3755efa7c40372b09c635d8e 100644
(file)
--- 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 ]'