]> git.sthu.org Git - shutils.git/commitdiff
systemd: Add vidirsyncer unit and timer files
authorStefan Huber <shuber@sthu.org>
Thu, 11 Jun 2020 18:47:15 +0000 (20:47 +0200)
committerStefan Huber <shuber@sthu.org>
Thu, 11 Jun 2020 18:47:15 +0000 (20:47 +0200)
systemd/user/vdirsyncer.service [new file with mode: 0644]
systemd/user/vdirsyncer.timer [new file with mode: 0644]

diff --git a/systemd/user/vdirsyncer.service b/systemd/user/vdirsyncer.service
new file mode 100644 (file)
index 0000000..8d63f0f
--- /dev/null
@@ -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 (file)
index 0000000..ca3fc38
--- /dev/null
@@ -0,0 +1,10 @@
+[Unit]
+Description=vdirsyncer timer
+
+[Timer]
+OnBootSec=5m
+OnUnitActiveSec=3h
+Unit=vdirsyncer.service
+
+[Install]
+WantedBy=timers.target