aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/dyndhcpd@.service
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/dyndhcpd@.service')
-rw-r--r--systemd/dyndhcpd@.service3
1 files changed, 2 insertions, 1 deletions
diff --git a/systemd/dyndhcpd@.service b/systemd/dyndhcpd@.service
index 251562c..591f8b7 100644
--- a/systemd/dyndhcpd@.service
+++ b/systemd/dyndhcpd@.service
@@ -1,7 +1,8 @@
[Unit]
Description=IPv4 DHCP server for interface %i
Requires=sys-subsystem-net-devices-%i.device
-After=sys-subsystem-net-devices-%i.device network.target systemd-networkd.service
+After=sys-subsystem-net-devices-%i.device network.target network-online.target systemd-networkd.service
+Wants=network-online.target
[Service]
ExecStart=!/usr/bin/dyndhcpd --interface %i --user %p-%i --pidfile /run/%p@%i/dhcpd.pid --leases /var/lib/%p@%i/dhcp.leases --write-config /run/%p@%i/dhcpd.conf