From: Stefan Huber Date: Thu, 11 Jun 2020 18:47:15 +0000 (+0200) Subject: systemd: Add vidirsyncer unit and timer files X-Git-Url: https://git.sthu.org/?p=shutils.git;a=commitdiff_plain;h=4697538497e181aa38073b580fdc596daceb42d4 systemd: Add vidirsyncer unit and timer files --- 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