From 4697538497e181aa38073b580fdc596daceb42d4 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Thu, 11 Jun 2020 20:47:15 +0200 Subject: [PATCH] systemd: Add vidirsyncer unit and timer files --- systemd/user/vdirsyncer.service | 8 ++++++++ systemd/user/vdirsyncer.timer | 10 ++++++++++ 2 files changed, 18 insertions(+) create mode 100644 systemd/user/vdirsyncer.service create mode 100644 systemd/user/vdirsyncer.timer diff --git a/systemd/user/vdirsyncer.service b/systemd/user/vdirsyncer.service new file mode 100644 index 0000000..8d63f0f --- /dev/null +++ b/systemd/user/vdirsyncer.service @@ -0,0 +1,8 @@ +[Unit] +Description=vdirsyncer service +Wants=network-online.target +After=network-online.target + +[Service] +Type=oneshot +ExecStart=/usr/bin/vdirsyncer sync diff --git a/systemd/user/vdirsyncer.timer b/systemd/user/vdirsyncer.timer new file mode 100644 index 0000000..ca3fc38 --- /dev/null +++ b/systemd/user/vdirsyncer.timer @@ -0,0 +1,10 @@ +[Unit] +Description=vdirsyncer timer + +[Timer] +OnBootSec=5m +OnUnitActiveSec=3h +Unit=vdirsyncer.service + +[Install] +WantedBy=timers.target -- 2.39.5