aboutsummaryrefslogtreecommitdiff
path: root/dot_config
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2024-12-24 15:24:44 -0500
committerRyan Kavanagh <rak@rak.ac>2024-12-24 15:24:44 -0500
commit621f912c1ea71d94f9a97424807ac2b1486b8837 (patch)
treef13719f4e8230133a0f29eb83dd387d2bc118ccb /dot_config
parentsway systemd config (diff)
mbsync timers
Diffstat (limited to 'dot_config')
-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