From fb347028b583335e0d0acab260919e201af333dc Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 4 Jun 2022 21:33:23 +0200 Subject: Add systemd user services for vdirsyncer --- .config/systemd/user/vdirsyncer.service | 9 +++++++++ .config/systemd/user/vdirsyncer.timer | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 .config/systemd/user/vdirsyncer.service create mode 100644 .config/systemd/user/vdirsyncer.timer diff --git a/.config/systemd/user/vdirsyncer.service b/.config/systemd/user/vdirsyncer.service new file mode 100644 index 0000000..2f4fa3d --- /dev/null +++ b/.config/systemd/user/vdirsyncer.service @@ -0,0 +1,9 @@ +[Unit] +Description=Synchronize my contact and calendar files + +[Service] +Type=oneshot +ExecStart=/usr/bin/vdirsyncer sync + +[Install] +WantedBy=multi-user.target diff --git a/.config/systemd/user/vdirsyncer.timer b/.config/systemd/user/vdirsyncer.timer new file mode 100644 index 0000000..87c4338 --- /dev/null +++ b/.config/systemd/user/vdirsyncer.timer @@ -0,0 +1,8 @@ +[Unit] +Description=Synchronize my calendar and contact files automatically + +[Timer] +OnUnitInactiveSec=60 + +[Install] +WantedBy=timers.target -- cgit v1.2.3-70-g09d2