[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Long pause when exim daemon is being stopped (was: Re: exim4 prone to break d-i, bug #297607)


On Sun, Mar 27, 2005 at 07:25:07PM +0200, Frans Pop wrote:
> On Sunday 27 March 2005 07:23, you wrote:
> > How does your system behave when you search for an AAAA Record for your
> > hostname?
> Not tried.

Can you please try that?

> > What does exim do when you set "dns_ipv4_lookup = *" in the main
> > configuration setup?
> > What does exim do when you set "primary_hostname = your_hostname" in the
> > main configuration setup?  
> What main config setup do you mean? /etc/exim4/exim4.conf.template?

I mean the "main" part of the exim configuration, which is the
beginning of /etc/exim4/exim4.conf.template is you have chosen all
default values during configuration. If you send me your
/etc/exim4/update-exim4.conf.conf, I can see what configuration your
exim uses.

> Do you mean "primary_hostname = your_hostname" literally or
> "primary_hostname = gimli.fjphome.nl"?

primary_hostname = gimli.fjphome.nl

The idea is to tell exim the name of the local host so that it doesn't
need to guess.

> > I see. Is this reproducible in a system state where stracing both
> > start-stop-daemon and the actual daemon is possible? Does the delay
> > also happen when you manually determine the PID and sent it a SIGTERM
> > directly?
> I've managed to strace the start-stop-daemon. Output attached.

And where was the 30 seconds delay? strace has an option to put
timestamps into the trace, that would be helpful here.

> I've also got a better handle on the problem. It definitely has to do with 
> base-config and can be reproduced as follows:
> - 'su' to root
> - run 'base-config new'
>   - select menu option to configure MTA: no questions are asked, but exim
>     is restarted
>   - finish base-config
> - run '/etc/init.d/exim4 stop

The call to exim4 stop returns after 0m0.011s real time on my system.

> Hope this gives you enough clues. Please ask if you need more info.

An strace of start-stop-daemon and the exim daemon with timestamps
enabled would be nice.

You could als tcpdump or ethereal the network traffic between your
system and the name servers to see which queries your system sends out.

Marc, still suspecting a name service problem.

Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835

Reply to: