From: Alexander Scheel Date: Fri, 14 Dec 2018 16:49:12 +0000 (-0500) Subject: Update systemd units to depend on network-online X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c2e00c86e75e460470e25480c729eee7161cb2c;p=thirdparty%2Ffreeradius-server.git Update systemd units to depend on network-online Due to the use of SO_BINDTODEVICE, FreeRADIUS requires the address to be up when binding to a specific IP address. In systemd, depending on network.target is not sufficient to require the network to be up, so FreeRADIUS can still fail to bind; instead, network-online.target is required if the network is required to be online. This manifests in errors such as: Error: Failed binding to auth address x.x.x.x port 1812 bound to server default: Cannot assign requested address Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1637275 Signed-off-by: Alexander Scheel --- diff --git a/debian/freeradius.service b/debian/freeradius.service index b0cd1a6f19c..26e49d39f39 100644 --- a/debian/freeradius.service +++ b/debian/freeradius.service @@ -1,6 +1,6 @@ [Unit] Description=FreeRADIUS multi-protocol policy server -After=network.target +After=network-online.target Documentation=man:radiusd(8) man:radiusd.conf(5) http://wiki.freeradius.org/ http://networkradius.com/doc/ [Service] diff --git a/redhat/radiusd.service b/redhat/radiusd.service index ada08db4c28..00861b985bf 100644 --- a/redhat/radiusd.service +++ b/redhat/radiusd.service @@ -1,6 +1,6 @@ [Unit] Description=FreeRADIUS multi-protocol policy server -After=network.target +After=network-online.target Documentation=man:radiusd(8) man:radiusd.conf(5) http://wiki.freeradius.org/ http://networkradius.com/doc/ [Service]