shutdown_clients has no effect on doveadm stop

Roland Rosenfeld rrosenfeld at netcologne.de
Tue Jun 14 15:31:29 UTC 2016


Hi Aki!

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

> Are you using systemd by chance?

Yes, with the default dovecot.service file provided with 2.2.24:

$ systemctl cat dovecot
# /lib/systemd/system/dovecot.service
# This file is part of Dovecot
#
# If you want to pass additionally command line options to the dovecot
# binary, create the file:
#       `/etc/systemd/system/dovecot.service.d/service.conf'.
# In this file create a Service section and configure an Environment with
# the variable `OPTIONS'. For example:
#
#       [Service]
#       Environment='OPTIONS=-p'
#
# In the `Service' section you may also specify various other setting.
# If you have trouble with `Too many open files' you may set:
#LimitNOFILE=8192
#
# If you want to allow the Dovecot services to produce core dumps, use:
#LimitCORE=infinity

[Unit]
Description=Dovecot IMAP/POP3 email server
Documentation=man:dovecot(1)
Documentation=http://wiki2.dovecot.org/
After=local-fs.target network.target

[Service]
Type=forking
ExecStart=/opt/dovecot/sbin/dovecot
PIDFile=/var/run/dovecot/master.pid
ExecReload=/opt/dovecot/bin/doveadm reload
ExecStop=/opt/dovecot/bin/doveadm stop
PrivateTmp=true
NonBlocking=yes
# Enable this if your systemd is new enough to support it:
#ProtectSystem=full

[Install]
WantedBy=multi-user.target

# /etc/systemd/system/dovecot.service.d/override.conf
[Service]
LimitNOFILE=22000


Greetings
Roland


More information about the dovecot mailing list