diff options
author | Mike Crute <crutem@amazon.com> | 2018-10-29 12:17:46 -0700 |
---|---|---|
committer | Mike Crute <crutem@amazon.com> | 2018-10-30 13:30:55 -0700 |
commit | 050c0916971522a709adaa01ffb2abd5d86dc7b0 (patch) | |
tree | 89ea6a23b646edc7b56db6081abb82130add19f6 /.linux | |
parent | 39417ea83008b3e38ac4fd21aba3fb8df528df33 (diff) | |
download | dotfiles-050c0916971522a709adaa01ffb2abd5d86dc7b0.tar.bz2 dotfiles-050c0916971522a709adaa01ffb2abd5d86dc7b0.tar.xz dotfiles-050c0916971522a709adaa01ffb2abd5d86dc7b0.zip |
Add mbsync systemd units
Diffstat (limited to '.linux')
-rw-r--r-- | .linux/systemd/mbsync.service | 9 | ||||
-rw-r--r-- | .linux/systemd/mbsync.timer | 9 |
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] | ||
2 | Description=mbsync mail sync | ||
3 | |||
4 | [Service] | ||
5 | Type=oneshot | ||
6 | ExecStart=%h/.local/bin/mbsync -c %h/.mbsyncrc -Va | ||
7 | |||
8 | [Install] | ||
9 | WantedBy=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] | ||
2 | Description=Run mbsync once every few minutes | ||
3 | |||
4 | [Timer] | ||
5 | OnActiveSec=2min | ||
6 | OnUnitActiveSec=2min | ||
7 | |||
8 | [Install] | ||
9 | WantedBy=default.target | ||