Bug#768874: "exim4 restart" updates config while running

Jakub Warmuz jakub at warmuz.org
Sun Nov 9 20:43:50 UTC 2014


Package: exim4-base
Version: 4.80-7+deb7u1

Quoting update-exim4.conf manpages [1]:

>        If you are running exim as daemon (as it is in the default setup of the
>        Debian  packages) you should not invoke update-exim4.conf directly when
>        exim is running. For SMTP receiving or queue running, exim  forks,  and
>        the new processes would use the new configuration file, while the orig-
>        inal main exim daemon would still use the old configuration  file.  You
>        should use invoke-rc.d exim4 restart instead.

Now, "/etc/init.d/exim4 restart" updates the config while exim is
running, which is exactly what manpage warns against!

> restart)
>   log_daemon_msg "Stopping MTA for restart"
>   # regenerate exim4.conf
>   upex4conf
>   isconfigvalid
>   stop_exim
>   log_end_msg 0
>   sleep 2
>   log_daemon_msg "Restarting MTA"
>   start_exim
>   log_end_msg 0
>   warn_paniclog
>   ;;

Typo in in the exim4-config manpages (also 4.80-7+deb7u1) or bug in
exim4-base that can lead to problems when exim forks for SMTP receiving
or queue running?

Noticed in wheezy 7.1, as well as current sid (4.84-3).


[1] http://manpages.debian.org/cgi-bin/man.cgi?&query=update-exim4.conf

-- 
Yours virtually,
Jakub Warmuz

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-exim4-maintainers/attachments/20141109/aa2bde0a/attachment.sig>


More information about the Pkg-exim4-maintainers mailing list