RE: Regarding compiling BIND 9.10.3-p4 on a SystemD Distro

2016-03-25 Thread Lightner, Jeff
...@lists.isc.org] On Behalf Of Sean Son Sent: Thursday, March 24, 2016 6:23 PM To: Tony Finch Cc: bind-us...@isc.org Subject: Re: Regarding compiling BIND 9.10.3-p4 on a SystemD Distro Thank you for the replies everyone. Are there any major differences between the BIND package that Red Hat/CentOS

Re: Regarding compiling BIND 9.10.3-p4 on a SystemD Distro

2016-03-24 Thread Sean Son
Thank you for the replies everyone. Are there any major differences between the BIND package that Red Hat/CentOS provides vs the BIND package provided by the ISC website? Thanks On Thu, Mar 24, 2016 at 8:19 AM, Tony Finch wrote: > Mark Andrews wrote: > > > > That said named does wait for the

Re: Regarding compiling BIND 9.10.3-p4 on a SystemD Distro

2016-03-24 Thread Tony Finch
Mark Andrews wrote: > > That said named does wait for the loading to complete before the > parent process exits and its exit status reflects if the load > succeeded or not. See ns_os_daemonize() and ns_os_started(). OK, I'm feeling pretty stupid now, and I'm sorry for saying that named doesn't d

Re: Regarding compiling BIND 9.10.3-p4 on a SystemD Distro

2016-03-23 Thread Mark Andrews
In message , Tony Finch writes: > Reindl Harald wrote: > > > > > The problem that I alluded to above is that if you have services that > > > depend on the DNS, there should be a mechanism for the DNS server to say > > > when it is ready and that it's OK to start services that need DNS. I don't >

Re: Regarding compiling BIND 9.10.3-p4 on a SystemD Distro

2016-03-23 Thread Robert Edmonds
Anand Buddhdev wrote: > Knot DNS, for example, has a compile-time option to link against systemd > libraries. Then, when Knot starts, it loads all its zones in, does > whatever else it needs to do, and then sends a notification via dbus. > > If anyone cares about this, they could open a feature re

Re: Regarding compiling BIND 9.10.3-p4 on a SystemD Distro

2016-03-23 Thread Anand Buddhdev
On 23/03/16 14:51, Tony Finch wrote: >> With systemd the methodology isn't that BIND notifies other things that >> it is up. It is that other things, if dependent upon BIND, have in >> their systemd files a requirement that BIND be up before they start. > > Yes, but how does systemd know when BI

Re: Regarding compiling BIND 9.10.3-p4 on a SystemD Distro

2016-03-23 Thread Chuck Anderson
On Wed, Mar 23, 2016 at 01:51:58PM +, Tony Finch wrote: > Lightner, Jeff wrote: > > > > With systemd the methodology isn't that BIND notifies other things that > > it is up. It is that other things, if dependent upon BIND, have in > > their systemd files a requirement that BIND be up before t

RE: Regarding compiling BIND 9.10.3-p4 on a SystemD Distro

2016-03-23 Thread Lightner, Jeff
s here. -Original Message- From: Tony Finch [mailto:fa...@hermes.cam.ac.uk] On Behalf Of Tony Finch Sent: Wednesday, March 23, 2016 9:52 AM To: Lightner, Jeff Cc: bind-users@lists.isc.org Subject: RE: Regarding compiling BIND 9.10.3-p4 on a SystemD Distro Lightner, Jeff wrote: > > Wit

RE: Regarding compiling BIND 9.10.3-p4 on a SystemD Distro

2016-03-23 Thread Tony Finch
Lightner, Jeff wrote: > > With systemd the methodology isn't that BIND notifies other things that > it is up. It is that other things, if dependent upon BIND, have in > their systemd files a requirement that BIND be up before they start. Yes, but how does systemd know when BIND is up? (The Red

Re: Regarding compiling BIND 9.10.3-p4 on a SystemD Distro

2016-03-23 Thread Tony Finch
Reindl Harald wrote: > Am 23.03.2016 um 13:36 schrieb Tony Finch: > > > > BIND does not do that - it forks too early. It's a bit tiresome > > than this is a bug in BIND which should be fixed instead worked around - Yes. > the whol epurpose of double-forking is to signal to the caller that > init

RE: Regarding compiling BIND 9.10.3-p4 on a SystemD Distro

2016-03-23 Thread Lightner, Jeff
rding compiling BIND 9.10.3-p4 on a SystemD Distro Reindl Harald wrote: > > > The problem that I alluded to above is that if you have services > > that depend on the DNS, there should be a mechanism for the DNS > > server to say when it is ready and that it's OK to start

Re: Regarding compiling BIND 9.10.3-p4 on a SystemD Distro

2016-03-23 Thread Tony Finch
Reindl Harald wrote: > > > The problem that I alluded to above is that if you have services that > > depend on the DNS, there should be a mechanism for the DNS server to say > > when it is ready and that it's OK to start services that need DNS. I don't > > know the right way to specify that to sys

Re: Regarding compiling BIND 9.10.3-p4 on a SystemD Distro

2016-03-23 Thread Tony Finch
Reindl Harald wrote: > Am 23.03.2016 um 11:54 schrieb Tony Finch: > > > > There's a sample unit file in the chroot setup instructions at > > https://wiki.debian.org/Bind9 > > > > (It looks a bit half-baked to me since it doesn't seem to have any way to > > signal systemd that named has finished st

Re: Regarding compiling BIND 9.10.3-p4 on a SystemD Distro

2016-03-23 Thread Tony Finch
Sean Son wrote: > > I recently compiled and installed BIND 9.10.3-p4 from source on a system > running CentOS 7. This is for practice purposes. Ive been searching all of > the net and I cannot find the answer to this one question of mine: How do I > create the systemd service unit configuration fi

Re: Regarding compiling BIND 9.10.3-p4 on a SystemD Distro

2016-03-22 Thread negativeindex
This is not specifically a bind question but rather a centos/red hat question, but I think the below will get you on the right track: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/sect-Managing_Services_with_systemd-Unit_Files.html On Tue