Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 442560 - net-misc/dhcp init.d script needs 'use slapd' with USE=ldap
Summary: net-misc/dhcp init.d script needs 'use slapd' with USE=ldap
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-10 08:49 UTC by Tiziano Müller (RETIRED)
Modified: 2012-11-11 21:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tiziano Müller (RETIRED) gentoo-dev 2012-11-10 08:49:54 UTC
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() {
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2012-11-10 17:51:06 UTC
Many packages add in extra depends based on USE flags set.
Comment 2 SpanKY gentoo-dev 2012-11-11 21:42:11 UTC
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