shutdown_clients has no effect on doveadm stop

Roland Rosenfeld rrosenfeld at netcologne.de
Tue Jun 14 16:20:23 UTC 2016


On Tue, 14 Jun 2016, aki.tuomi at dovecot.fi wrote:

> Are you using systemd by chance?

I did some more testing, stopped dovecot via systemd, started it
manually via /opt/dovecot/sbin/dovecot, stopped it via "doveadm stop"
and this time the IMAP connection stayed active.

So it seems to be systemd, which killed the IMAP connection :-(

After reading systemd.kill(5), it seems that

[Service]
KillMode=none

in /etc/systemd/system/dovecot.service.d/override.conf does what I
expect.  It only runs "doveadm stop" on "systemctl stop dovecot" and
"systemctl restart dovecot", but doesn't terminate all processes from
the dovecot control-group as the default does.

But I'm not sure, whether this implies new problems on shutting down
the system, because the IMAP/POP3 connections aren't terminated on
dovecot shutdown any more.

Greeetings
Roland


More information about the dovecot mailing list