dovecot.service.in revision 563c1e3b45bbb69bc67b75ff7a899699bea18e88
# This file is part of Dovecot
#
# If you want to pass additionally command line options to the dovecot
# binary, create the file:
# 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/
[Service]
Type=forking
ExecStartPre=-@libexecdir@/dovecot/prestartscript
ExecStart=@sbindir@/dovecot
PIDFile=@rundir@/master.pid
ExecReload=@bindir@/doveadm reload
ExecStop=@bindir@/doveadm stop
ExecStopPost=-@libexecdir@/dovecot/poststopscript
PrivateTmp=true
NonBlocking=yes
ProtectSystem=full
PrivateDevices=true
NoNewPrivileges=true
CapabilityBoundingSet=CAP_CHOWN CAP_DAC_OVERRIDE CAP_IPC_LOCK CAP_KILL CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID CAP_SYS_CHROOT CAP_SYS_RESOURCE
[Install]
WantedBy=multi-user.target