summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2020-11-18 12:08:22 -0500
committerMike Gilbert <floppym@gentoo.org>2020-11-18 12:08:22 -0500
commit9b7959a9776a912bdef36f4db14c3c7bb23ddf34 (patch)
tree6de38cd914c7e61f17100af5de76cc2ad6b3a043 /net-misc
parentsci-physics/clhep: drop old version (diff)
downloadgentoo-9b7959a9776a912bdef36f4db14c3c7bb23ddf34.tar.gz
gentoo-9b7959a9776a912bdef36f4db14c3c7bb23ddf34.tar.bz2
gentoo-9b7959a9776a912bdef36f4db14c3c7bb23ddf34.zip
net-misc/dhcp: pull in network-online.target in service units
dhcpd refuses to start if there are no configured broadcast interfaces. Closes: https://bugs.gentoo.org/628920 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/dhcp/dhcp-4.4.2-r3.ebuild (renamed from net-misc/dhcp/dhcp-4.4.2-r2.ebuild)0
-rw-r--r--net-misc/dhcp/files/dhcpd4.service2
-rw-r--r--net-misc/dhcp/files/dhcpd6.service2
3 files changed, 4 insertions, 0 deletions
diff --git a/net-misc/dhcp/dhcp-4.4.2-r2.ebuild b/net-misc/dhcp/dhcp-4.4.2-r3.ebuild
index 0257824a08f6..0257824a08f6 100644
--- a/net-misc/dhcp/dhcp-4.4.2-r2.ebuild
+++ b/net-misc/dhcp/dhcp-4.4.2-r3.ebuild
diff --git a/net-misc/dhcp/files/dhcpd4.service b/net-misc/dhcp/files/dhcpd4.service
index b064bd9b57df..8197ace12103 100644
--- a/net-misc/dhcp/files/dhcpd4.service
+++ b/net-misc/dhcp/files/dhcpd4.service
@@ -3,6 +3,8 @@ Description=DHCPv4 Server Daemon
Documentation=man:dhcpd(8) man:dhcpd.conf(5)
After=network.target
After=time-sync.target
+After=network-online.target
+Wants=network-online.target
[Service]
ExecStart=/usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcp -group dhcp --no-pid
diff --git a/net-misc/dhcp/files/dhcpd6.service b/net-misc/dhcp/files/dhcpd6.service
index 603cacd8eb89..7f41db0a72b1 100644
--- a/net-misc/dhcp/files/dhcpd6.service
+++ b/net-misc/dhcp/files/dhcpd6.service
@@ -3,6 +3,8 @@ Description=DHCPv6 Server Daemon
Documentation=man:dhcpd(8) man:dhcpd.conf(5)
After=network.target
After=time-sync.target
+After=network-online.target
+Wants=network-online.target
[Service]
ExecStart=/usr/sbin/dhcpd -f -s -6 -cf /etc/dhcp/dhcpd.conf -user dhcp -group dhcp --no-pid