home · contact · privacy
Add fetchmail and pingmail to mail setup.
[config] / buster / etc_files / mail / etc / systemd / system / fetchmail.service
diff --git a/buster/etc_files/mail/etc/systemd/system/fetchmail.service b/buster/etc_files/mail/etc/systemd/system/fetchmail.service
new file mode 100644 (file)
index 0000000..dc8acb4
--- /dev/null
@@ -0,0 +1,8 @@
+[Unit]
+Description=Run plom's fetchmail
+
+[Service]
+Type=oneshot
+User=plom
+# fetchmail returns 1 when no new mail, we want to catch that
+ExecStart=/bin/sh -c 'fetchmail || [ $? -eq 1 ]'