From f6b1eaf93cbaac4bcef2349fd436b5bdd43a5a23 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Mon, 12 Dec 2016 14:37:17 -0500 Subject: 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 --- isync/.config/systemd/user/mbsync.service | 8 ++++++++ isync/.config/systemd/user/mbsync.timer | 10 ++++++++++ 2 files changed, 18 insertions(+) create mode 100644 isync/.config/systemd/user/mbsync.service create mode 100644 isync/.config/systemd/user/mbsync.timer (limited to 'isync/.config/systemd/user') 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 -- cgit v1.2.3-60-g2f50