./exim stop doesn't work

keefe007

Verified User
Joined
Dec 25, 2004
Messages
291
I'm having a problem with ./exim stop working properly on a Debian system.

It will appear to stop:

server:/etc/init.d# ./exim stop
Shutting down exim:

But exim processes will stay running:

server:/etc/init.d# ps aux | grep exim
root 24290 0.0 0.0 7200 1280 ? S 18:49 0:00 /usr/sbin/exim -q
mail 25123 0.0 0.0 7312 1220 ? S 18:50 0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
root 26140 0.0 0.0 9088 2468 ? S 18:53 0:00 /usr/sbin/exim -q
mail 26141 0.0 0.0 9220 2168 ? S 18:53 0:00 /usr/sbin/exim -q

Trying ./exim stop again will state that its already stopped:

server:/etc/init.d# ./exim stop
Shutting down exim: ./exim: line 32: kill: (24288) - No such process

spamd: no process killed

Any ideas?
 
The main PID has been stopped; that's why you get that
kill: (24288) - No such process
returned.

The exim queue runners (exim -q) will stop when they're finished running; you can kill them earlier manually with
# kill -9 PIDID
where PIDID is replaced by the PID of each running process.

I don't know why you've got a second daemon process running; you may have started exim more than once.
/usr/sbin/exim -bd -q15m -oP
You should kill that manually as well.

Jeff
 
I know I didn't start it twice. Everytime I have to restart it I do a ./exim stop and then I killall exim to make sure there are no more exim processes running. Could exim have started another daemon process running by itself?

Here's what I have running currently:

Code:
astra:~/exim-4.69/Local# ps aux | grep exim
mail      7886  0.0  0.0   8980  1064 ?        Ss   May17   0:19 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
mail     22451  0.0  0.0   9048  1608 ?        S    12:28   0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
mail     22701  0.0  0.0   9048  1608 ?        S    12:29   0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
mail     23055  0.0  0.0   9012  1640 ?        S    12:30   0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
mail     23064  0.0  0.0   9024  1400 ?        S    12:30   0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
mail     23296  0.0  0.0   9048  1608 ?        S    12:31   0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
mail     23639  0.0  0.0   9048  1628 ?        S    12:32   0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
mail     23756  0.0  0.0   9048  1612 ?        S    12:33   0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
mail     23818  0.0  0.0   9048  1624 ?        S    12:33   0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
mail     23841  0.0  0.0   9048  1624 ?        S    12:33   0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
mail     24333  0.0  0.0   9012  1412 ?        S    12:35   0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
mail     24739  0.0  0.0   9048  1624 ?        S    12:37   0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
mail     25287  0.0  0.0   9012  1416 ?        S    12:39   0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
mail     26385  0.0  0.0   9048  1624 ?        S    12:42   0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
mail     26659  0.0  0.0   9012  1388 ?        S    12:43   0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
mail     27271  0.0  0.0   9320  2840 ?        S    12:46   0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
mail     27586  0.0  0.0   9280  2936 ?        S    12:47   0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
mail     27591  0.0  0.0   9020  1592 ?        S    12:47   0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
mail     27664  0.0  0.0   9048  1616 ?        S    12:47   0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
mail     27695  0.0  0.0   9012  1416 ?        S    12:47   0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
root     27696  0.6  0.0   9244  3724 ?        S    12:47   0:00 /usr/sbin/exim -Mc 1M66wM-0007Cg-TB
root     27699  0.6  0.0   9240  2724 ?        S    12:47   0:00 /usr/sbin/exim -Mc 1M66wN-0007BL-Q5
mail     27701  0.0  0.0   9456  2004 ?        D    12:47   0:00 /usr/sbin/exim -Mc 1M66wM-0007Cg-TB
mail     27703  0.0  0.0   9244  1108 ?        S    12:47   0:00 /usr/sbin/exim -Mc 1M66wN-0007BL-Q5
mail     27704  0.0  0.0   8980  2088 ?        S    12:47   0:00 /usr/sbin/exim -oMr spam-scanned -bS
mail     27706  0.0  0.0   9244   744 ?        S    12:47   0:00 /usr/sbin/exim -Mc 1M66wN-0007BL-Q5
mail     27708  0.0  0.0      0     0 ?        Z    12:47   0:00 [exim] <defunct>
mail     27714  0.0  0.0   9012  1380 ?        S    12:47   0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
root     27716  0.0  0.0   1836   588 pts/0    S+   12:47   0:00 grep exim
 
As I recall now, so do I. And I have multiple copies of what looks like the main daemon as well. They do eventually disappear; my guess is that they're attempting deliveries.

But if I need to be sure exim has stopped I do this:
Code:
# service exim stop ; killall -9 exim

Sorry I can't be more helpful.

Jeff
 
Back
Top