commit b0320e2fb677f77e4e50a189c6034d9b6fcc9579
parent 871fac589fcdd3a79879aad43fd57285e6fe7ed7
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Sat, 12 Sep 2020 18:43:43 -0500
Add mbsync jobs
Diffstat:
3 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/.config/systemd/user/mbsync.service b/.config/systemd/user/mbsync.service
@@ -0,0 +1,6 @@
+[Unit]
+Description=Mailbox synchronization service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/mbsync -c /home/shimmy/.config/mbsync/mbsyncrc -Va+
\ No newline at end of file
diff --git a/.config/systemd/user/mbsync.timer b/.config/systemd/user/mbsync.timer
@@ -0,0 +1,10 @@
+[Unit]
+Description=Mailbox synchronization timer
+
+[Timer]
+OnBootSec=1m
+OnUnitActiveSec=3m
+Unit=mbsync.service
+
+[Install]
+WantedBy=timers.target+
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
@@ -54,6 +54,8 @@
!.config/systemd/
!.config/systemd/user
!.config/systemd/user/ipfs.service
+!.config/systemd/user/mbsync.service
+!.config/systemd/user/mbsync.timer
!.config/systemd/user/emacs.service.d
!.config/systemd/user/emacs.service.d/override.conf
!.config/tbsm