From ea977e7e35150d5a6c09bf7c1bb97a1f8eee01ae Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Mon, 23 Feb 2015 09:08:09 +0100 Subject: [PATCH] systemd - add all --- .../systemd/user/default.target.wants/urxvtd.service | 1 + config/systemd/user/mbsync.service | 7 +++++++ config/systemd/user/mbsync.timer | 10 ++++++++++ 3 files changed, 18 insertions(+) create mode 120000 config/systemd/user/default.target.wants/urxvtd.service create mode 100644 config/systemd/user/mbsync.service create mode 100644 config/systemd/user/mbsync.timer diff --git a/config/systemd/user/default.target.wants/urxvtd.service b/config/systemd/user/default.target.wants/urxvtd.service new file mode 120000 index 0000000..9a45787 --- /dev/null +++ b/config/systemd/user/default.target.wants/urxvtd.service @@ -0,0 +1 @@ +/home/felix/.config/systemd/user/urxvtd.service \ No newline at end of file diff --git a/config/systemd/user/mbsync.service b/config/systemd/user/mbsync.service new file mode 100644 index 0000000..6211309 --- /dev/null +++ b/config/systemd/user/mbsync.service @@ -0,0 +1,7 @@ +[Unit] +Description=iSYnc IMAP Synchronizer + +[Service] +Type=oneshot +ExecStart=/usr/bin/mbsync -a + diff --git a/config/systemd/user/mbsync.timer b/config/systemd/user/mbsync.timer new file mode 100644 index 0000000..2bf42bd --- /dev/null +++ b/config/systemd/user/mbsync.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Run iSync every 5 minutes + +[Timer] +OnBootSec=10 +OnUnitActiveSec=5min + +[Install] +WantedBy=default.target +