diff options
author | Ryan Kavanagh <rak@rak.ac> | 2024-12-24 15:24:44 -0500 |
---|---|---|
committer | Ryan Kavanagh <rak@rak.ac> | 2024-12-24 15:24:44 -0500 |
commit | 621f912c1ea71d94f9a97424807ac2b1486b8837 (patch) | |
tree | f13719f4e8230133a0f29eb83dd387d2bc118ccb /dot_config/systemd | |
parent | sway systemd config (diff) |
mbsync timers
Diffstat (limited to 'dot_config/systemd')
-rw-r--r-- | dot_config/systemd/user/mbsync.service | 9 | ||||
-rw-r--r-- | dot_config/systemd/user/mbsync.timer | 10 | ||||
-rw-r--r-- | dot_config/systemd/user/timers.target.wants/symlink_mbsync.timer | 1 |
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 |