From c5f80d16443fdafbcfaba00620a7dd7ce51cfb80 Mon Sep 17 00:00:00 2001 From: rEnr3n <18730618+rEnr3n@users.noreply.github.com> Date: Fri, 5 Aug 2022 21:28:54 +0800 Subject: [PATCH] Make systemd service restart only once on failure Fixes https://github.com/pimutils/vdirsyncer/issues/998 --- AUTHORS.rst | 1 + contrib/vdirsyncer.service | 1 + 2 files changed, 2 insertions(+) diff --git a/AUTHORS.rst b/AUTHORS.rst index 5330139..ad1b232 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -13,6 +13,7 @@ In alphabetical order: - Marek Marczykowski-Górecki - Markus Unterwaditzer - Michael Adler +- rEnr3n - Thomas Weißschuh - Witcher01 diff --git a/contrib/vdirsyncer.service b/contrib/vdirsyncer.service index 5f4a5a0..35b1890 100644 --- a/contrib/vdirsyncer.service +++ b/contrib/vdirsyncer.service @@ -1,6 +1,7 @@ [Unit] Description=Synchronize calendars and contacts Documentation=https://vdirsyncer.readthedocs.org/ +StartLimitBurst=2 [Service] ExecStart=/usr/bin/vdirsyncer sync