diff options
author | David Runge <dave@sleepmap.de> | 2019-09-07 12:43:19 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2019-09-07 12:43:19 +0200 |
commit | 671730f28830c871e9721a7da91e37ec7c62e123 (patch) | |
tree | d3931a74c8f11a7196df3efb47a0ae752cfa5529 | |
parent | 67e1ec332cf90a8720446ae81fcc403b1ddce88e (diff) | |
download | dotfiles-671730f28830c871e9721a7da91e37ec7c62e123.tar.gz dotfiles-671730f28830c871e9721a7da91e37ec7c62e123.tar.bz2 dotfiles-671730f28830c871e9721a7da91e37ec7c62e123.tar.xz dotfiles-671730f28830c871e9721a7da91e37ec7c62e123.zip |
.config/systemd/user/mbsync.*: Adding timer/service unit to start mbsync (and notmuch afterwards).
-rw-r--r-- | .config/systemd/user/mbsync.service | 7 | ||||
-rw-r--r-- | .config/systemd/user/mbsync.timer | 10 |
2 files changed, 17 insertions, 0 deletions
diff --git a/.config/systemd/user/mbsync.service b/.config/systemd/user/mbsync.service new file mode 100644 index 0000000..e35116f --- /dev/null +++ b/.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/.config/systemd/user/mbsync.timer b/.config/systemd/user/mbsync.timer new file mode 100644 index 0000000..82ebb83 --- /dev/null +++ b/.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 |