-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 2 Sep 2016, Sami Ketola wrote:
On 01 Sep 2016, at 17:25, Florent B <flor...@coppint.com> wrote:

Hi everyone,

On Debian Jessie servers, I use initd script provided by Dovecot 2.2 (in
doc/dovecot-initd.sh) and when I stop or restart dovecot service, it
still remains some process :

ps aux | grep dove
dovecot   1798  0.0  0.1   9408  2116 ?        S    16:15   0:00
dovecot/anvil [1 connections]
root      1799  0.0  0.1   9544  2288 ?        S    16:15   0:00 dovecot/log
dovecot   1812  0.0  0.2  39144  5720 ?        S    16:15   0:00
dovecot/auth [0 wait, 0 passdb, 0 userdb]
root      1844  0.0  0.1  12728  2076 pts/0    S+   16:16   0:00 grep dove


Is it expected ? "restart" does not work of course, and "start" after
"stop" too.

How can I fix this ?

Debian Jessie comes with systemd so you really should not use initscript 
anymore but
switch to systemd for starting dovecot. There is systemd service description 
file available
for you in case your vendor does not provide it in the package:

https://github.com/dovecot/core/blob/master/dovecot.service.in

I have the same experience, that Dovecot keeps running for a while. An immediate stop & start always fails. IMHO, that behaviour started with the introduction of anvil.

If the ps command lists all processes, that is what I see on Jessie and Squeeze as well.

@Florent: Please check, if the Dovecot processess dies after some timeout. I have patched the scripts to wait 5s then send an extra HUP and after 5s INT.

- -- Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEVAwUBV8ksh3z1H7kL/d9rAQJY8gf+NnFjsEKI3a4opD4Wkim8eGtQvkWkFEtA
Ywf7vS3cGzU2rJGqUq6X/zVjrW5oU5NUdePdR5nZqpkKz5+QR5jHluZ/zX4Cgmeh
ujKSIf4VZnUmvw9XG5RRFzUlTUkZilSGz97KtcnLcLJQj7KNhC39sFBPTUl6Li2X
2lwDpyNz+u5rhPti1LTKwooiGI2Pr5X6YT+aZQcebzj++0qLiwRha6Gmm5PWzgS4
mMsMe2zFwvKhP6/XuVWMzT9nsgmEQaeiDsu4u3A+TDRdFwfYrHvhyG0uh8SgG6a6
Vye30fy53e/KWzfXAE37m1zRyouHUuxSzHjr4YtM9K/E8rYBDWR0Ow==
=HdJT
-----END PGP SIGNATURE-----

Reply via email to