summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2016-05-09 21:46:49 -0400
committerWilliam Hubbs <williamh@gentoo.org>2016-05-12 10:48:43 -0500
commit775b840692930eb0216b709a5dfa96d8ffa84ca6 (patch)
treeae1b345f7fbc262de96a39d78b7f8d22a4fb0b9d /net-misc/dhcpcd
parentnet-misc/openconnect: remove old (diff)
downloadgentoo-775b840692930eb0216b709a5dfa96d8ffa84ca6.tar.gz
gentoo-775b840692930eb0216b709a5dfa96d8ffa84ca6.tar.bz2
gentoo-775b840692930eb0216b709a5dfa96d8ffa84ca6.zip
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
Diffstat (limited to 'net-misc/dhcpcd')
-rw-r--r--net-misc/dhcpcd/files/dhcpcd.service6
1 files changed, 4 insertions, 2 deletions
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