]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dovecot.service.in: Improve [service] examples
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 22 Dec 2016 15:48:27 +0000 (10:48 -0500)
committerGitLab <gitlab@git.dovecot.net>
Fri, 23 Dec 2016 13:23:51 +0000 (15:23 +0200)
Move them inside [service] section so that simply uncommenting them works.
Also give a better example of how Environment might be used.

dovecot.service.in

index 0fa27256e18b8b09f40604d955723e59e1ed8441..637f441c8ea072da5f3f465c5bc858484ca7b049 100644 (file)
@@ -3,18 +3,6 @@
 # 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
@@ -35,5 +23,12 @@ 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
 
+# You can add environment variables with e.g.:
+#Environment='CORE_OUTOFMEM=1'
+# 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
+
 [Install]
 WantedBy=multi-user.target