feat: add mbsync service every 5 minutes

This commit is contained in:
Bruno F. Fontes 2022-02-20 19:05:52 -03:00
parent 1be27fff16
commit b926a7c2b4
2 changed files with 17 additions and 0 deletions

7
Services/mbsync.service Normal file
View File

@ -0,0 +1,7 @@
[Unit]
Description=Mailbox synchronization service
[Service]
Type=oneshot
ExecStart=/usr/bin/mbsync -Va
ExecStartPost=/home/bruno/dotfiles/mutt/notmuch-hook.sh

10
Services/mbsync.timer Normal file
View File

@ -0,0 +1,10 @@
[Unit]
Description=Mailbox synchronization timer
[Timer]
OnBootSec=2m
OnUnitActiveSec=5m
Unit=mbsync.service
[Install]
WantedBy=timers.target