aboutsummaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2022-10-12 08:37:49 +0100
committerMatthew Lemon <matt@matthewlemon.com>2022-10-12 08:37:49 +0100
commit4f82186f72f6e29ca658f8ea6161d9acd15f8620 (patch)
treee96e58bc5c0b1acb376b00ab6e4584ef7b33e069 /systemd
parente7b2a7bf92ec1c7dae6ec047a8b0a48f42f0d0f8 (diff)
two new systemd service timer files for arch - for isyn email
Diffstat (limited to 'systemd')
-rw-r--r--systemd/isync.service10
-rw-r--r--systemd/isync.timer12
2 files changed, 22 insertions, 0 deletions
diff --git a/systemd/isync.service b/systemd/isync.service
new file mode 100644
index 0000000..6188570
--- /dev/null
+++ b/systemd/isync.service
@@ -0,0 +1,10 @@
+# must be symlinked from ~/.config/systemd/user
+[Unit]
+Description=Use isync to update IMAP account
+
+[Service]
+# User=lemon
+# Group=lemon
+Type=oneshot
+ExecStart=/usr/bin/mbsync fastmailchannel
+ExecStart=/usr/bin/notmuch new
diff --git a/systemd/isync.timer b/systemd/isync.timer
new file mode 100644
index 0000000..f06938a
--- /dev/null
+++ b/systemd/isync.timer
@@ -0,0 +1,12 @@
+# must be symlinked from ~/.config/systemd/user
+[Unit]
+Description=isync timer
+
+[Timer]
+# run 5m after boot
+OnBootSec=5m
+# then every hour
+OnUnitActiveSec=1m
+
+[Install]
+WantedBy=timers.target