# HG changeset patch # User Timo Sirainen # Date 1482421707 18000 # Node ID 3ceea78a5cc8b45e61f9329d2fd0de087b956ae1 # Parent 9827c9f165a9b1d2c780079f7d8aa13bde99a38b dovecot.service.in: Improve [service] examples Move them inside [service] section so that simply uncommenting them works. Also give a better example of how Environment might be used. diff -r 9827c9f165a9 -r 3ceea78a5cc8 dovecot.service.in --- a/dovecot.service.in Wed Dec 21 21:33:35 2016 +0200 +++ b/dovecot.service.in Thu Dec 22 10:48:27 2016 -0500 @@ -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 @@ -33,5 +21,12 @@ # Enable this if your systemd is new enough to support it: #ProtectSystem=full +# 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