]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dovecot.service: Update systemd file
authorAki Tuomi <aki.tuomi@dovecot.fi>
Mon, 25 Sep 2017 07:08:16 +0000 (10:08 +0300)
committerTimo Sirainen <tss@dovecot.fi>
Tue, 3 Oct 2017 07:09:20 +0000 (10:09 +0300)
There is no point daemonizing dovecot in systemd, also added
comment about apparmor and NoNewPrivileges option.

dovecot.service.in

index 637f441c8ea072da5f3f465c5bc858484ca7b049..5fe382a12fa1229fa6758db511542eb7e9fe96df 100644 (file)
@@ -8,11 +8,11 @@
 Description=Dovecot IMAP/POP3 email server
 Documentation=man:dovecot(1)
 Documentation=http://wiki2.dovecot.org/
-After=local-fs.target network.target
+After=local-fs.target network-online.target
 
 [Service]
-Type=forking
-ExecStart=@sbindir@/dovecot
+Type=simple
+ExecStart=@sbindir@/dovecot -F
 PIDFile=@rundir@/master.pid
 ExecReload=@bindir@/doveadm reload
 ExecStop=@bindir@/doveadm stop
@@ -20,6 +20,7 @@ PrivateTmp=true
 NonBlocking=yes
 ProtectSystem=full
 PrivateDevices=true
+# disable this if you want to use apparmor plugin
 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