diff --git a/dhcpcd-online.service b/dhcpcd-online.service new file mode 100644 index 0000000..a00e9c5 --- /dev/null +++ b/dhcpcd-online.service @@ -0,0 +1,12 @@ +[Unit] +Description=Wait for dhcpcd to get online +Requisite=dhcpcd.service +After=dhcpcd.service +Before=network-online.target + +[Service] +Type=oneshot +ExecStart=dhcpcd-online + +[Install] +WantedBy=network-online.target diff --git a/dhcpcd.service b/dhcpcd.service new file mode 100644 index 0000000..86b5a43 --- /dev/null +++ b/dhcpcd.service @@ -0,0 +1,10 @@ +[Unit] +Description=A minimalistic network configuration daemon with DHCPv4, rdisc and DHCPv6 support +Wants=network.target +Before=network.target + +[Service] +ExecStart=/usr/sbin/dhcpcd -q --nobackground + +[Install] +WantedBy=multi-user.target diff --git a/dhcpcd@.service b/dhcpcd@.service new file mode 100644 index 0000000..c81bb05 --- /dev/null +++ b/dhcpcd@.service @@ -0,0 +1,15 @@ +[Unit] +Description=dhcpcd on %I +Wants=network.target +Before=network.target +BindsTo=sys-subsystem-net-devices-%i.device +After=sys-subsystem-net-devices-%i.device + +[Service] +Type=forking +PIDFile=/run/dhcpcd-%I.pid +ExecStart=/usr/sbin/dhcpcd -q %I +ExecStop=/usr/sbin/dhcpcd -x %I + +[Install] +WantedBy=multi-user.target