summaryrefslogtreecommitdiff
path: root/extra/fetchmail/fetchmail.service
diff options
context:
space:
mode:
Diffstat (limited to 'extra/fetchmail/fetchmail.service')
-rw-r--r--extra/fetchmail/fetchmail.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/extra/fetchmail/fetchmail.service b/extra/fetchmail/fetchmail.service
new file mode 100644
index 000000000..3e7da7545
--- /dev/null
+++ b/extra/fetchmail/fetchmail.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=A remote-mail retrieval utility
+After=network.target
+
+[Service]
+User=fetchmail
+EnvironmentFile=/etc/conf.d/fetchmail
+ExecStart=/usr/bin/fetchmail -d ${INTERVAL} -f ${CONFIG}
+RestartSec=1
+
+[Install]
+WantedBy=multi-user.target