summaryrefslogtreecommitdiff
path: root/.linux
diff options
context:
space:
mode:
authorMike Crute <crutem@amazon.com>2018-10-29 12:17:46 -0700
committerMike Crute <crutem@amazon.com>2018-10-30 13:30:55 -0700
commit050c0916971522a709adaa01ffb2abd5d86dc7b0 (patch)
tree89ea6a23b646edc7b56db6081abb82130add19f6 /.linux
parent39417ea83008b3e38ac4fd21aba3fb8df528df33 (diff)
downloaddotfiles-050c0916971522a709adaa01ffb2abd5d86dc7b0.tar.bz2
dotfiles-050c0916971522a709adaa01ffb2abd5d86dc7b0.tar.xz
dotfiles-050c0916971522a709adaa01ffb2abd5d86dc7b0.zip
Add mbsync systemd units
Diffstat (limited to '.linux')
-rw-r--r--.linux/systemd/mbsync.service9
-rw-r--r--.linux/systemd/mbsync.timer9
2 files changed, 18 insertions, 0 deletions
diff --git a/.linux/systemd/mbsync.service b/.linux/systemd/mbsync.service
new file mode 100644
index 0000000..6a0908b
--- /dev/null
+++ b/.linux/systemd/mbsync.service
@@ -0,0 +1,9 @@
1[Unit]
2Description=mbsync mail sync
3
4[Service]
5Type=oneshot
6ExecStart=%h/.local/bin/mbsync -c %h/.mbsyncrc -Va
7
8[Install]
9WantedBy=timers.target
diff --git a/.linux/systemd/mbsync.timer b/.linux/systemd/mbsync.timer
new file mode 100644
index 0000000..a4901c6
--- /dev/null
+++ b/.linux/systemd/mbsync.timer
@@ -0,0 +1,9 @@
1[Unit]
2Description=Run mbsync once every few minutes
3
4[Timer]
5OnActiveSec=2min
6OnUnitActiveSec=2min
7
8[Install]
9WantedBy=default.target