On Wed, Dec 12, 2012 at 6:04 AM, Tony Finch wrote:
> Mark Andrews wrote:
>>
>> You need to wait for named to stop
>>
>> p=`rndc stop -p | awk '{print $2}'`
>> while kill -0 $p
>> do
>> sleep 1
>> done
>> /etc/rc.d/rc.named start
This looks like FreeBSD. If so, just use 'service named rest
Mark Andrews wrote:
>
> You need to wait for named to stop
>
> p=`rndc stop -p | awk '{print $2}'`
> while kill -0 $p
> do
> sleep 1
> done
> /etc/rc.d/rc.named start
Thanks.
Tony.
--
f.anthony.n.finchhttp://dotat.at/
Forties, Cromarty: East, veering southeast, 4 or 5, occasionally 6
In message , Tony F
inch writes:
> I have had a few instances recently when named has failed to re-open its
> TCP listening socket after a restart. This is particularly likely if I
> try to bounce it quickly with a command line like
>
> # rndc stop; /etc/rc.d/rc.named start
You need to wait for
Why use rndc to stop then the init script to start? Is there no
/etc/rc.d/rc.named restart? On RHEL5 the init script has a restart option so
it will stop then start.
If a socket is open then it could take a finite amount of time for it to close
making it unavailable on the restart if you ha
4 matches
Mail list logo