summarylogtreecommitdiffstats
path: root/pyimapnotify@.service
diff options
context:
space:
mode:
Diffstat (limited to 'pyimapnotify@.service')
-rw-r--r--pyimapnotify@.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/pyimapnotify@.service b/pyimapnotify@.service
new file mode 100644
index 000000000000..2925e7495887
--- /dev/null
+++ b/pyimapnotify@.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Execute scripts on new messages using IDLE imap command (Python version)
+After=network.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/pyimapnotify -c %h/.config/imapnotify/%I
+Restart=on-failure
+RestartSec=20
+
+[Install]
+WantedBy=default.target