Bug#284873: no pidfile is written when SMTPLISTENEROPTIONS non-empty

Marc Haber Marc Haber <mh+debian-packages@zugschlus.de>, 284873@bugs.debian.org
Thu, 9 Dec 2004 15:30:32 +0100


retitle #284873 give -oP parameter by default?
severity #284873 wishlist
thanks

On Thu, Dec 09, 2004 at 10:24:09AM +0100, Marc Haber wrote:
> when SMTPLISTENEROPTIONS is set to a non-empty value, no pid file is
> being written, which prevents the Daemon from being stopped.
> 
> [2/501]mh@vash:~$ pstree -ap | grep exim4
> [3/502]mh@vash:~$ sudo ls -al /var/run/exim4/
> total 8
> drwxr-x---   2 Debian-exim Debian-exim 4096 Dec  9 10:20 .
> drwxr-xr-x  17 root        root        4096 Dec  9 09:52 ..
> [4/503]mh@vash:~$ grep SMTPLISTENEROPTIONS /etc/default/exim4
> SMTPLISTENEROPTIONS='-oX 465 -oX 25'

Actually, that would have to be -oX 465:25, and setting -oX disables
pidfile generation as documented in spec.txt.

We should, however, think about giving the -oP parameter to each exim
invocation by default. This would avoid my problem from happening on
user installations, and it would give a direct connection from the
daemon to the pid file via its command line visible in the process list.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
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