From b926a7c2b4e0cd5afbe511fcc09b76239f4f4568 Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Sun, 20 Feb 2022 19:05:52 -0300 Subject: [PATCH] feat: add mbsync service every 5 minutes --- Services/mbsync.service | 7 +++++++ Services/mbsync.timer | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 Services/mbsync.service create mode 100644 Services/mbsync.timer diff --git a/Services/mbsync.service b/Services/mbsync.service new file mode 100644 index 0000000..8aa13d6 --- /dev/null +++ b/Services/mbsync.service @@ -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 diff --git a/Services/mbsync.timer b/Services/mbsync.timer new file mode 100644 index 0000000..82ebb83 --- /dev/null +++ b/Services/mbsync.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Mailbox synchronization timer + +[Timer] +OnBootSec=2m +OnUnitActiveSec=5m +Unit=mbsync.service + +[Install] +WantedBy=timers.target