FS#40598 - [rsync] Chain after network.target
Attached to Project:
Arch Linux
Opened by Davy Kager (dkager) - Thursday, 29 May 2014, 17:19 GMT
Last edited by Pierre Schmitz (Pierre) - Thursday, 03 July 2014, 18:35 GMT
Opened by Davy Kager (dkager) - Thursday, 29 May 2014, 17:19 GMT
Last edited by Pierre Schmitz (Pierre) - Thursday, 03 July 2014, 18:35 GMT
|
Details
Description:
The systemd service for rsync (rsyncd.service) doesn't explicitly chain itself. This wasn't a problem for me when using netctl, but after switching to systemd-networkd rsync fails to bind when enabled on boot: May 29 16:46:22 sharna rsyncd[223]: unable to bind any inbound sockets on port 873 May 29 16:46:22 sharna rsyncd[223]: rsync error: error in socket IO (code 10) at socket.c(555) [Receiver=3.1.0] This is fixed by: After=network.target in the [Unit] section of the service file. Additional info: * package version: rsync-3.1.0-2 Steps to reproduce: * Add "address = 1.2.3.4" to /etc/rsyncd.conf. * Enable rsyncd.service in systemd. * Reboot. |
This task depends upon
Also network-online.target doesn't seem to do much out-of-the-box for me:
[root@sharna~]# systemctl status network-online.target
? network-online.target - Network is Online
Loaded: loaded (/usr/lib/systemd/system/network-online.target; static)
Active: inactive (dead)
For networkd you'd use systemd-networkd-wait-online to provide network-online, networkmanager has it's own service for the same thing and I think there's a netctl one too.