aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-03-24 09:15:07 +0100
committerlonkaars <l.leblansch@gmail.com>2021-03-24 09:15:07 +0100
commit580b4254bfdcb99c4968d041ff8e9196391daede (patch)
treee9ad87ae4418a2b94e5dcbdaac61151e93022930
parent834eca533e9522ec7899dd00246aea90baac145e (diff)
added mbsync systemd units
-rw-r--r--.config/systemd/user/mbsync.service7
-rw-r--r--.config/systemd/user/mbsync.timer11
2 files changed, 18 insertions, 0 deletions
diff --git a/.config/systemd/user/mbsync.service b/.config/systemd/user/mbsync.service
new file mode 100644
index 0000000..8a26bbd
--- /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
+
diff --git a/.config/systemd/user/mbsync.timer b/.config/systemd/user/mbsync.timer
new file mode 100644
index 0000000..980eb22
--- /dev/null
+++ b/.config/systemd/user/mbsync.timer
@@ -0,0 +1,11 @@
+[Unit]
+Description=Mailbox synchronization timer
+
+[Timer]
+OnBootSec=2m
+OnUnitActiveSec=5m
+Unit=mbsync.service
+
+[Install]
+WantedBy=timers.target
+