If dhcp uses LDAP as a config backend it requires the LDAP Server to be up. Add a 'use=slapd' to make sure that on systems where both slapd and dhcpd are started, dhcpd always comes after the LDAP and a restart of the LDAP triggers a restart of DHCP. Only catch: if someone has dhcp and slapd running on the same host and they are not connected then a restart of slapd triggers a restart of dhcp as well. diff --git a/init.d/dhcpd b/init.d/dhcpd index c3bbab7..c7e3354 100755 --- a/init.d/dhcpd +++ b/init.d/dhcpd @@ -9,7 +9,7 @@ extra_commands="configtest" depend() { need net - use logger dns + use logger dns slapd } get_var() {
Many packages add in extra depends based on USE flags set.
should be all set now in the tree; thanks for the report! Commit message: Add slapd to use in init.d depends when built with USE=ldap http://sources.gentoo.org/net-misc/dhcp/dhcp-4.2.4_p2-r1.ebuild?r1=1.3&r2=1.4 http://sources.gentoo.org/net-misc/dhcp/files/dhcpd.init5?r1=1.1&r2=1.2 http://sources.gentoo.org/net-misc/dhcp/files/dhcrelay.init3?r1=1.2&r2=1.3