From: Simon Deziel Date: Mon, 11 Apr 2022 16:08:11 +0000 (-0400) Subject: systemd: restart daemon on-failure (#302) X-Git-Tag: v3.2.4~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d41bb98c09bf0b999c4eee4e2125c7e5d0747ec4;p=thirdparty%2Frsync.git systemd: restart daemon on-failure (#302) man 5 systemd.service: > Setting this to on-failure is the recommended choice for long-running services Partial fix for https://bugzilla.samba.org/show_bug.cgi?id=13463 Signed-off-by: Simon Deziel --- diff --git a/packaging/systemd/rsync.service b/packaging/systemd/rsync.service index 8a0b5820..8a867ca6 100644 --- a/packaging/systemd/rsync.service +++ b/packaging/systemd/rsync.service @@ -7,6 +7,7 @@ Documentation=man:rsync(1) man:rsyncd.conf(5) [Service] ExecStart=/usr/bin/rsync --daemon --no-detach RestartSec=1 +Restart=on-failure # Citing README.md: #