Bug#453958: Bug#449287: Bug#453958: Bug#449287: /etc/init.d/exim4 gives "no such process" error when stopping exim4

Kevin Baradon kevin.baradon at gmail.com
Wed Feb 13 19:19:10 UTC 2008


Le mercredi 13 février 2008, Marc Haber a écrit :
> On Tue, Feb 12, 2008 at 08:36:11PM +0100, Kevin Baradon wrote:
> > Le jeudi 17 janvier 2008, Marc Haber a écrit :
> > > user exim4 at packages.debian.org
> > > usertags #453958 close-20080331
> > > usertags #449287 close-20080331
> > > thanks
> > >
> > > On Sat, Dec 01, 2007 at 02:38:54PM +0100, Andreas Metzler wrote:
> > > > On 2007-12-01 Andreas Metzler <ametzler at downhill.at.eu.org> wrote:
> > > > [....]
> > > >
> > > > > I can reproduce this, the error is generated when killproc invokes
> > > > >
> > > > > /sbin/start-stop-daemon --stop --pidfile /var/run/exim4/exim.pid
> > > > > --retry 5 --quiet --oknodo
> > > >
> > > > which is dpkg bug 157305. (I am using a block instead of reassigning,
> > > > too keep the bug visible in exim.)
> > >
> > > #157305 was fixed on January 8, and I do not see the issue any more.
> > > Can the original submitters please take a look and comment?
> >
> > Hello,
> >
> > Bug is still present here in sid (updated today).
> >
> > kev1:/home/kevin# invoke-rc.d exim4 start
> > Starting MTA: exim4.
> > kev1:/home/kevin# ps aux | grep exim4
> > 102       2879  0.0  0.1   6020   916 ?        Ss   20:32
> > 0:00 /usr/sbin/exim4 -bd -q30m
> > root      2943  0.0  0.1   2444   760 pts/1    S+   20:32   0:00 grep
> > exim4 kev1:/home/kevin# invoke-rc.d exim4 stop
> > Stopping MTA:/sbin/start-stop-daemon: warning: failed to kill 2879: No
> > such process
> >  exim4_listener.
> > kev1:/home/kevin# ps aux | grep exim4
> > root      3033  0.0  0.1   2444   764 pts/1    S+   20:32   0:00 grep
> > exim4 kev1:/home/kevin# invoke-rc.d exim4 stop
> > Stopping MTA:.
> > kev1:/home/kevin# ps aux | grep exim4
> > kev1:/home/kevin#
> >
> > Let me known if you need additional information.
>
> I'd like to know versions of exim4-base, dpkg and lsb-base installed,
> and the contents of /etc/default/exim4 and /var/run/exim.pid
>

Hello, 

Here are all informations you wanted: 

ii  exim4                            4.69-2                        meta-package to ease Exim MTA (v4) installation
ii  exim4-base                       4.69-2                        support files for all Exim MTA (v4) packages
ii  exim4-config                     4.69-2                        configuration for the Exim MTA (v4)
ii  exim4-daemon-light               4.69-2                        lightweight Exim MTA (v4) daemon

ii  dpkg                             1.14.7                        package maintenance system for Debian

ii  lsb-base                         3.1-24                        Linux Standard Base 3.1 init script functionality
ii  lsb-release                      3.1-24                        Linux Standard Base version reporting utility

/etc/default/exim4 contents: 
------------------x8
# /etc/default/exim4
EX4DEF_VERSION=''

# 'combined' -   one daemon running queue and listening on SMTP port
# 'no'       -   no daemon running the queue
# 'separate' -   two separate daemons
# 'ppp'      -   only run queue with /etc/ppp/ip-up.d/exim4.
# 'nodaemon' - no daemon is started at all.
# 'queueonly' - only a queue running daemon is started, no SMTP listener.
# setting this to 'no' will also disable queueruns from /etc/ppp/ip-up.d/exim4
QUEUERUNNER='combined'
# how often should we run the queue
QUEUEINTERVAL='30m'
# options common to quez-runner and listening daemon
COMMONOPTIONS=''
# more options for the daemon/process running the queue (applies to the one
# started in /etc/ppp/ip-up.d/exim4, too.
QUEUERUNNEROPTIONS=''
# special flags given to exim directly after the -q. See exim(8)
QFLAGS=''
# options for daemon listening on port 25
SMTPLISTENEROPTIONS=''
------------------x8


/var/run/exim.pid: there is no such file, but there is a /var/run/exim4/exim.pid file: 
-rw-r--r-- 1 root Debian-exim 5 fév 13 19:49 /var/run/exim4/exim.pid

Its contents:  
------------------x8
4982
------------------x8

> What does happen when you (with a running exim) invoke
> /sbin/start-stop-daemon --stop --pidfile /var/run/exim4/exim.pid
> --retry 5 --quiet --oknodo?

kevin at kev1:~$ ps aux | grep exim4
102       4982  0.0  0.1   6020   716 ?        Ss   19:49   0:00 /usr/sbin/exim4 -bd -q30m
kevin    32189  0.0  0.1   2444   756 pts/1    R+   20:11   0:00 grep exim4

kev1:/home/kevin# /sbin/start-stop-daemon --stop --pidfile /var/run/exim4/exim.pid --retry 5 --quiet --oknodo
/sbin/start-stop-daemon: warning: failed to kill 4982: No such process
kev1:/home/kevin# ps aux | grep exim4
root      2488  0.0  0.1   2444   764 pts/1    S+   20:15   0:00 grep exim4
kev1:/home/kevin# ls -l /var/run/exim4/
total 4
-rw-r--r-- 1 root Debian-exim 5 fév 13 19:49 exim.pid
kev1:/home/kevin# cat /var/run/exim4/exim.pid
4982

Despite of the error message, process is killed. But its pidfile is still there.

>
> Greetings
> Marc





More information about the Pkg-exim4-maintainers mailing list