diff options
author | Amin Bandali <amin@aminb.org> | 2016-12-12 14:37:17 -0500 |
---|---|---|
committer | Amin Bandali <amin@aminb.org> | 2016-12-12 14:37:17 -0500 |
commit | f6b1eaf93cbaac4bcef2349fd436b5bdd43a5a23 (patch) | |
tree | f717ad9a17a90b715b9041d83f51df4df9441b26 /isync/.config/systemd | |
parent | 7acb70d3bf0323a7545ba4b89981d0ffd47a2c7a (diff) | |
download | configs-f6b1eaf93cbaac4bcef2349fd436b5bdd43a5a23.tar.gz configs-f6b1eaf93cbaac4bcef2349fd436b5bdd43a5a23.tar.xz configs-f6b1eaf93cbaac4bcef2349fd436b5bdd43a5a23.zip |
Add systemd units for calling mbsync every 5 minutes
To enable:
systemctl --user enable mbsync.timer
systemctl --user start mbsync.timer
Also, use 'pick-first for mu4e-context-policy
Diffstat (limited to '')
-rw-r--r-- | isync/.config/systemd/user/mbsync.service | 8 | ||||
-rw-r--r-- | isync/.config/systemd/user/mbsync.timer | 10 |
2 files changed, 18 insertions, 0 deletions
diff --git a/isync/.config/systemd/user/mbsync.service b/isync/.config/systemd/user/mbsync.service new file mode 100644 index 0000000..7fc2821 --- /dev/null +++ b/isync/.config/systemd/user/mbsync.service @@ -0,0 +1,8 @@ +[Unit] +Description=Mailbox synchronization service + +[Service] +Type=oneshot +ExecStart=/usr/bin/mbsync -Va +StandardOutput=syslog +StandardError=syslog diff --git a/isync/.config/systemd/user/mbsync.timer b/isync/.config/systemd/user/mbsync.timer new file mode 100644 index 0000000..7c3c751 --- /dev/null +++ b/isync/.config/systemd/user/mbsync.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Mailbox synchronization timer + +[Timer] +OnCalendar=*:0/5 +Persistent=true +Unit=mbsync.service + +[Install] +WantedBy=timers.target |