Makes systemd handle davmail and regular inbox checks

Jonathan Hodgson 4 years ago
parent acba5f4559
commit 1da1a17c0b
  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