From: Mike Gilbert Date: Tue, 10 May 2016 01:46:49 +0000 (-0400) Subject: net-misc/dhcpcd: make dhcpcd.service block until a lease is obtained X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=775b840692930eb0216b709a5dfa96d8ffa84ca6;p=gentoo.git net-misc/dhcpcd: make dhcpcd.service block until a lease is obtained This makes the systemd unit behave more like the init script, and should resolve issues with NFS mounts. Bug: https://bugs.gentoo.org/582484 --- diff --git a/net-misc/dhcpcd/files/dhcpcd.service b/net-misc/dhcpcd/files/dhcpcd.service index 2ac9adca0692..8430214d59b4 100644 --- a/net-misc/dhcpcd/files/dhcpcd.service +++ b/net-misc/dhcpcd/files/dhcpcd.service @@ -1,10 +1,12 @@ [Unit] Description=Lightweight DHCP client daemon Wants=network.target -Before=network.target +Before=network.target network-online.target [Service] -ExecStart=/sbin/dhcpcd -q --nobackground +Type=forking +ExecStart=/sbin/dhcpcd -q +PIDFile=/run/dhcpcd.pid [Install] WantedBy=multi-user.target