aboutsummaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
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