Makes systemd handle davmail and regular inbox checks
This commit is contained in:
parent
c80a9ec925
commit
2acea3ea54
3 changed files with 29 additions and 0 deletions
10
davmail/.config/systemd/user/checkemails@.service
Normal file
10
davmail/.config/systemd/user/checkemails@.service
Normal file
|
@ -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
|
9
davmail/.config/systemd/user/checkemails@inbox.timer
Normal file
9
davmail/.config/systemd/user/checkemails@inbox.timer
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Check Inbox Every Minute
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnBootSec=1min
|
||||||
|
OnUnitActiveSec=1min
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
10
davmail/.config/systemd/user/davmail.service
Normal file
10
davmail/.config/systemd/user/davmail.service
Normal file
|
@ -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…
Add table
Add a link
Reference in a new issue