Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 231994

Summary: net-dns/ldapdns-2.06-r1 bump: init scripts (without daemontools)
Product: Gentoo Linux Reporter: Atman Sense <atman.sense>
Component: New packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED CANTFIX    
Severity: enhancement Keywords: EBUILD
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ldapdns-2.06-r1.ebuild
initd file
confd file
initd file

Description Atman Sense 2008-07-16 18:11:06 UTC
Modified ebuild to let ldapdns work with normal init instead of daemontools.
Comment 1 Atman Sense 2008-07-16 18:15:01 UTC
Created attachment 160591 [details]
ldapdns-2.06-r1.ebuild
Comment 2 Atman Sense 2008-07-16 18:17:07 UTC
Created attachment 160592 [details]
initd file
Comment 3 Atman Sense 2008-07-16 18:18:03 UTC
Created attachment 160593 [details]
confd file
Comment 4 Atman Sense 2008-07-17 16:02:19 UTC
Created attachment 160645 [details]
initd file

Added --pidfile to init script. (Needed if someone wants to monitor ldapdns with app-admin/monit.)
Comment 5 Atman Sense 2008-07-17 20:11:05 UTC
Bad: If the ldap server is not avaible for a second (restart for example) ldapdns stops answering dns queries. It needs a restart. Last message is

 handler 0 was hung up on, restarting 

It's not possible to use monit to monitor ldapdns. The dns test expects something what is not provided by ldapdns. Only by bind, it seems, see: 
http://www.mail-archive.com/monit-general@nongnu.org/msg01445.html
To reduce the test to udp connect on port 53 doesn't solve the problem because ldapdns is still there. Similar to MyDNS, see:
http://www.mail-archive.com/monit-general@nongnu.org/msg01469.html

bad workaround: in crontab:

*/5 * * * * nslookup name localhost|grep name > /dev/null||/etc/init.d/ldapdns restart
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2010-01-23 15:04:17 UTC
Removed from main tree.