aboutsummaryrefslogtreecommitdiff
path: root/dot_config/systemd/user
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/systemd/user')
-rw-r--r--dot_config/systemd/user/mbsync.service9
-rw-r--r--dot_config/systemd/user/mbsync.timer10
-rw-r--r--dot_config/systemd/user/timers.target.wants/symlink_mbsync.timer1
3 files changed, 20 insertions, 0 deletions
diff --git a/dot_config/systemd/user/mbsync.service b/dot_config/systemd/user/mbsync.service
new file mode 100644
index 0000000..da0f146
--- /dev/null
+++ b/dot_config/systemd/user/mbsync.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Mailbox synchronization service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/mbsync -a
+
+[Install]
+WantedBy=default.target
diff --git a/dot_config/systemd/user/mbsync.timer b/dot_config/systemd/user/mbsync.timer
new file mode 100644
index 0000000..b613c7f
--- /dev/null
+++ b/dot_config/systemd/user/mbsync.timer
@@ -0,0 +1,10 @@
+[Unit]
+Description=Mailbox synchronization timer
+
+[Timer]
+OnBootSec=2m
+OnUnitActiveSec=15m
+Unit=mbsync.service
+
+[Install]
+WantedBy=timers.target
diff --git a/dot_config/systemd/user/timers.target.wants/symlink_mbsync.timer b/dot_config/systemd/user/timers.target.wants/symlink_mbsync.timer
new file mode 100644
index 0000000..adba734
--- /dev/null
+++ b/dot_config/systemd/user/timers.target.wants/symlink_mbsync.timer
@@ -0,0 +1 @@
+/home/rak/.config/systemd/user/mbsync.timer