https://bugzilla.samba.org/show_bug.cgi?id=13463
--- Comment #4 from Simon Deziel ---
Since rsyncd exits with error code 10 ("Error in socket I/O") there are two
possible ways to improve the systemd unit:
[Service]
...
RestartForceExitStatus=10
Or:
[Service]
...
Restart=on-failure
Both
https://bugzilla.samba.org/show_bug.cgi?id=13463
--- Comment #3 from Andreas Hasenack ---
Thanks for all the opinions. I have one remaining issue, and that is with
"systemctl start rsync.service" not detecting the failure right away.
The systemd unit file calls rsync like this:
[Service]