]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Update systemd units to depend on network-online
authorAlexander Scheel <ascheel@redhat.com>
Fri, 14 Dec 2018 16:49:12 +0000 (11:49 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 15 Dec 2018 16:48:06 +0000 (11:48 -0500)
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 <ascheel@redhat.com>
debian/freeradius.service
redhat/radiusd.service

index b0cd1a6f19c8d9dcaf1e75bcc73d97cf34aef65d..26e49d39f390fb36c1ab9786cb7fa664d185b528 100644 (file)
@@ -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]
index ada08db4c28218b3f28ad1b73a8fabf1040f4db7..00861b985bf3c8115a50c1df7c876c9ec6e04216 100644 (file)
@@ -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]