]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
systemd: restart daemon on-failure (#302)
authorSimon Deziel <simon.deziel@gmail.com>
Mon, 11 Apr 2022 16:08:11 +0000 (12:08 -0400)
committerGitHub <noreply@github.com>
Mon, 11 Apr 2022 16:08:11 +0000 (09:08 -0700)
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 <simon@sdeziel.info>
packaging/systemd/rsync.service

index 8a0b5820a006b84ce2ae81821f148fda3422c7e0..8a867ca64f157e0665b534ca4c7ba67f77f114ae 100644 (file)
@@ -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:
 #