Re: [exim] Debian-Bug not stopping exim

Pàgina inicial
Delete this message
Reply to this message
Autor: Evgeniy Berdnikov
Data:  
A: exim-users
Assumpte: Re: [exim] Debian-Bug not stopping exim
On Wed, Feb 06, 2019 at 09:47:04AM +0100, Klaus Ethgen via Exim-users wrote:
> Hi Folks,
>
> did anybody already debug and fix the problem in debian that exim is not
> stopped with stop action anymore?
>
> Problem is, that /etc/init.d/exim4 seems to call killproc which calls
> start-stop-daemon to stop the daemon in stop or restart. When the return
> state is 0 it removes the PIDFILE.


Yes, pidfile is removed on "stop" action. But I see no problem so far.

> Unfortunately, start-stop-daemon seems to refuse the daemon when given a
> pidfile.


Do you mean that start-stop-daemon does not search for a process by
its name if pidfile is given? It's right, but it's unusual situation
if you have listening daemon running with pid != pidfile.
You have better to ask yourself how it could happen.

> But it does not error out than just return with 0. So the
> pidfile is gone afterwards.


In this case pidfile was gone BEFORE start-stop-daemon invocation.
This is exceptional situation, it requires manual dignostics.

It's not good thing to "resolve" such situations automatically
unless you clearly understand what happens and why it can't be
resolved in other ways.
--
Eugene Berdnikov