commit 9af262a99b99262c72524b50c5354ef83c8a0ce0 parent db803759e6af64cf4fdc68539e32c6678712d833 Author: Sven Möller <sven@svenmoeller.xyz> Date: Fri, 22 Jul 2022 20:27:13 +0200 Add systemd services for mbsync Diffstat:
A | mbsync/.config/systemd/user/mbsync.service | | | 7 | +++++++ |
A | mbsync/.config/systemd/user/mbsync.timer | | | 10 | ++++++++++ |
2 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/mbsync/.config/systemd/user/mbsync.service b/mbsync/.config/systemd/user/mbsync.service @@ -0,0 +1,7 @@ +[Unit] +Description=Mailbox synchronization service + +[Service] +Type=oneshot +ExecStart=/usr/bin/mbsync -Va +ExecStartPost=/usr/bin/notmuch new diff --git a/mbsync/.config/systemd/user/mbsync.timer b/mbsync/.config/systemd/user/mbsync.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Mailbox synchronization timer + +[Timer] +OnBootSec=2m +OnUnitActiveSec=5m +Unit=mbsync.service + +[Install] +WantedBy=timers.target