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

Frans Pop elendil at planet.nl
Tue Nov 27 23:57:32 UTC 2007


severity 449287 important
thanks

I've been seeing the same issue for some time on several systems,
therefore raising priority.

Here's the debug (set -x) output for the stop command during shutdown.
Hope it helps.

At first glance, the problem seems to be that first 'killproc' is being
called and later also start-stop-daemon. And then later there also a
'kill -0'...

Cheers,
FJP

Stopping MTA:
+ ps alx
+ grep '[e]xim'
5   100  2121     1  20   0   5848   912 -      Ss   ?          0:00 /usr/sbin/exim4 -bd -q30m
0     0  2269  2222  20   0   2808  1368 -      R    ?          0:00 /bin/sh /etc/rc0.d/K20exim4 stop
+ stop_exim
+ '[' -f /var/run/exim4/eximqr.pid ']'
+ '[' -f /var/run/exim4/exim.pid ']'
+ killproc -p /var/run/exim4/exim.pid /usr/sbin/exim4
+ local pidfile sig status base i name_param
+ pidfile=
+ name_param=
+ OPTIND=1
+ getopts p: opt
+ case "$opt" in
+ pidfile=/var/run/exim4/exim.pid
+ getopts p: opt
+ shift 2
+ base=exim4
+ '[' '!' /var/run/exim4/exim.pid ']'
++ echo
++ sed -e 's/^-\(.*\)/\1/'
+ sig=
++ echo
++ sed -e 's/^SIG\(.*\)/\1/'
+ sig=
+ '[' -n '' ']'
+ /sbin/start-stop-daemon --stop --pidfile /var/run/exim4/exim.pid --retry 5 --quiet --oknodo
/sbin/start-stop-daemon: warning: failed to kill 2121: No such process
+ status=0
+ '[' 0 = 1 ']'
+ '[' -z '' ']'
+ pidofproc -p /var/run/exim4/exim.pid /usr/sbin/exim4
+ local pidfile line i pids= status specified pid
+ pidfile=
+ specified=
+ OPTIND=1
+ getopts p: opt
+ case "$opt" in
+ pidfile=/var/run/exim4/exim.pid
+ specified=1
+ getopts p: opt
+ shift 2
+ '[' -z /var/run/exim4/exim.pid ']'
+ '[' -f /var/run/exim4/exim.pid ']'
+ read pid
+ '[' -n 2121 ']'
++ kill -0 2121
+ return 1
+ rm -f /var/run/exim4/exim.pid
+ return 0
+ log_progress_msg exim4_listener
+ '[' -z exim4_listener ']'
+ echo -n ' exim4_listener'
 exim4_listener+ log_end_msg 0
+ '[' -z 0 ']'
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ '[' xlinux '!=' xdumb ']'
+ '[' -x /usr/bin/tput ']'
+ '[' -x /usr/bin/expr ']'
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ '[' -z ']'
+ FANCYTTY=1
+ case "$FANCYTTY" in
+ true
++ /usr/bin/tput setaf 1
+ RED=''
++ /usr/bin/tput op
+ NORMAL=''
+ '[' 0 -eq 0 ']'
+ echo .
.
+ return 0
+ warn_paniclog
+ '[' -s /var/log/exim4/paniclog ']'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/pkg-exim4-maintainers/attachments/20071128/8ef5b1c2/attachment.pgp 


More information about the Pkg-exim4-maintainers mailing list