initd script does not stop/restart all dovecot processes

Sami Ketola sami.ketola at dovecot.fi
Fri Sep 2 06:37:25 UTC 2016


> On 01 Sep 2016, at 17:25, Florent B <florent at 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

Sami


More information about the dovecot mailing list