Makes systemd handle davmail and regular inbox checks

master
Jonathan Hodgson 4 years ago
parent c80a9ec925
commit 2acea3ea54
  1. 10
      davmail/.config/systemd/user/checkemails@.service
  2. 9
      davmail/.config/systemd/user/checkemails@inbox.timer
  3. 10
      davmail/.config/systemd/user/davmail.service

@ -0,0 +1,10 @@
[Unit]
Description=Check emails for %i
After=davmail.service
Requires=davmail.service
[Service]
ExecStart=/home/jonathan/.bin/emails/check-emails %i
[Install]
WantedBy=default.target

@ -0,0 +1,9 @@
[Unit]
Description=Check Inbox Every Minute
[Timer]
OnBootSec=1min
OnUnitActiveSec=1min
[Install]
WantedBy=timers.target

@ -0,0 +1,10 @@
[Unit]
Description=DavMail for Work
[Service]
ExecStart=/usr/bin/davmail %h/.config/davmail/davmail.properties.secret
Restart=on-failure
[Install]
WantedBy=default.target
DefaultInstance=davmail
Loading…
Cancel
Save