aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2016-03-08 18:03:08 +0100
committerGuilhem Moulin <guilhem@fripost.org>2016-03-08 18:03:08 +0100
commit750b6cbca59325c3419a5303f40359025e5b344d (patch)
tree5854204272b04aee4d4a87bccea213bcd19a159c
parente19354c1b2b8015f58b7119763bb8cec401fb3fa (diff)
pullimap: add systemd service unit file.
-rw-r--r--pullimap@.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/pullimap@.service b/pullimap@.service
new file mode 100644
index 0000000..d066886
--- /dev/null
+++ b/pullimap@.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Pull mails from an IMAP mailbox and deliver them to a SMTP session
+Wants=network-online.target
+After=network-online.target
+
+[Service]
+ExecStart=/usr/bin/pullimap --idle %i
+RestartSec=2min
+Restart=always
+
+[Install]
+WantedBy=default.target