The -f option to run in foreground

Kevin Darcy kcd at daimlerchrysler.com
Fri Jul 13 21:30:10 UTC 2001


aaron.g at hushmail.com wrote:

> I want to use the -f option to named to run the foreground, so that I can
> have a script automatically restart named if it crashes, or runs out of
> memory and is killed.
>
> Something like this:
>
> While()
> {
>      if($pid=fork)
>      {# PARENT HERE
>         wait;
>      }
>      else
>      { #CHILD HERE
>                 named -f;
>      }
> }
>
> Will the ?-f? option prevent bind from forking a child process to do a zone
> transfer?

I don't think it will. But why don't you try it and see? The worst thing
that'll happen is that zone transfers will stop for a while.


- Kevin





More information about the bind-users mailing list