[Dovecot] imap processes remaing after dovecot shutdown
Hello,
I'm using dovecot-1.0.beta3. When I shutdown dovecot (kill -term on the master-pid) the main process disappears, but all the child processes still remain. Why doesn't dovecot kill them as I shutdown the master-process? When I shutdown mysql, all child processes will be shutdown, too. When I shutdown apache, all child processes willbe shutdown, too. Thats what I expect on every application. Usually there is no need to shutdown dovecot. But for some reasons, from time to time 50 and more processes of one user are running and I don't know how else to get rid of them. I don't like to kill the child processes always manually.
Regards Marten
Tere.
Usually there is no need to shutdown dovecot. But for some reasons, from time to time 50 and more processes of one user are running and I don't know how else to get rid of them. I don't like to kill the child processes always manually.
killall -9 dovecot kills them all
-- Sysadmin
but "-9" option is not a very healthy way of killing processes. I use "killall dovecot imap". But I agree that it should kill them all like it kills imap-auth etc.
-- Sebastjan http://www.trepca.si/blog
On 4/1/06, Sysadmin <sysadmin@e-positive.ee> wrote:
Tere.
Usually there is no need to shutdown dovecot. But for some reasons, from time to time 50 and more processes of one user are running and I don't know how else to get rid of them. I don't like to kill the child processes always manually.
killall -9 dovecot kills them all
-- Sysadmin
Tere.
but "-9" option is not a very healthy way of killing processes. I use "killall dovecot imap". But I agree that it should kill them all like it kills imap-auth etc.
Maybe not healthy way, but if the program won't die using normal command, a'la /etc/init.d/dovecot stop, then You either kill all pids by hand or kill them all with -9 option:).
-- Sysadmin
Hello,
but "-9" option is not a very healthy way of killing processes. I use "killall dovecot imap". But I agree that it should kill them all like it kills imap-auth etc.
that's a workaround, not a straight solution. Why does it work correctly in apache? The Init V script of apache doesn't contain any "killall -9". And at that, I cannot even use this workaround, because I have an instance of dovecot for pop3 and one instance for imap because of different ip-addresses and different authentication. A "killall -9 dovecot" would kill all dovecot processes, although I only want to shutdown one instance.
Regards Marten
On Sat, 2006-04-01 at 17:40 +0200, Marten Lehmann wrote:
Hello,
I'm using dovecot-1.0.beta3. When I shutdown dovecot (kill -term on the master-pid) the main process disappears, but all the child processes still remain. Why doesn't dovecot kill them as I shutdown the master-process? When I shutdown mysql, all child processes will be shutdown, too. When I shutdown apache, all child processes willbe shutdown, too. Thats what I expect on every application. Usually there is no need to shutdown dovecot. But for some reasons, from time to time 50 and more processes of one user are running and I don't know how else to get rid of them. I don't like to kill the child processes always manually.
This has been requested once in a while, and I suppose I'll have to do that. For now there's no other way than killall imap or killall pop3 though.
participants (4)
-
Marten Lehmann
-
Sebastjan Trepca
-
Sysadmin
-
Timo Sirainen