From 621f912c1ea71d94f9a97424807ac2b1486b8837 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Tue, 24 Dec 2024 15:24:44 -0500 Subject: mbsync timers --- dot_config/systemd/user/mbsync.service | 9 +++++++++ dot_config/systemd/user/mbsync.timer | 10 ++++++++++ .../systemd/user/timers.target.wants/symlink_mbsync.timer | 1 + 3 files changed, 20 insertions(+) create mode 100644 dot_config/systemd/user/mbsync.service create mode 100644 dot_config/systemd/user/mbsync.timer create mode 100644 dot_config/systemd/user/timers.target.wants/symlink_mbsync.timer 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 -- cgit v1.2.3