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

Re: MTA takes so much time to start (at boot)



On 2010-03-21 08:25, Merciadri Luca wrote:
Ron Johnson wrote:
On 2010-03-21 05:59, Merciadri Luca wrote:

Teemu Likonen <tlikonen@iki.fi> writes:

I don't know answers to all your questions but sometimes I have had
similar problems. I fixed the slow startup by answering "Yes" to the
debconf question

    Keep number of DNS-queries minimal (Dial-on-Demand)?

Run "dpkg-reconfigure exim4-config" as root.
It worked like a charm. It now starts in less than one sec. This
parameter should be set as a default setting, shouldn't it?

The root cause has got to be that either
(a) the network isn't fully up yet, or
(b) there's some misconfiguration in /etc/hosts, /etc/mailcap,
/etc/exim4, ... where it's looking "out there" for something it can't
find.

I think that my network is set as fully up only a little bit later. That
must be the problem, as the rest has already been checked thoroughly.


On my system (and probably yours), networking is started by:
/etc/rcS.d/S07hostname.sh    # HOSTNAME="$(cat /etc/hostname)
/etc/rcS.d/S09ifupdown-clean # check out /etc/default/ifupdown
/etc/rcS.d/S14pppd-dns       # meaningless on *my* system
/etc/rcS.d/S14resolvconf     # processes /etc/network/interfaces
/etc/rcS.d/S15ifupdown       # ????
/etc/rcS.d/S16networking     # runs 'ifup -a'

And the MTA comes later at:
/etc/rc3.d/S04postfix

--
Obsession with "preserving cultural heritage" is a racist impediment
to moral, physical and intellectual progress.


Reply to: