annotate dovecot.service.in @ 18751:b088511e1cdb

systemd service: Fixed typos in the comment section. The settings for the file descriptor limit is LimitNOFILE. Removed quotes around the value infinity. Otherwise systemd will fail to parse that resource value.
author Pascal Volk <user@localhost.localdomain.org>
date Mon, 25 May 2015 14:27:22 +0000
parents 8dc79a437858
children a46848c73d7f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18750
8dc79a437858 systemd: Small improvements to the unit configuration file:
Pascal Volk <user@localhost.localdomain.org>
parents: 12750
diff changeset
1 # This file is part of Dovecot
8dc79a437858 systemd: Small improvements to the unit configuration file:
Pascal Volk <user@localhost.localdomain.org>
parents: 12750
diff changeset
2 #
8dc79a437858 systemd: Small improvements to the unit configuration file:
Pascal Volk <user@localhost.localdomain.org>
parents: 12750
diff changeset
3 # If you want to pass additionally command line options to the dovecot
8dc79a437858 systemd: Small improvements to the unit configuration file:
Pascal Volk <user@localhost.localdomain.org>
parents: 12750
diff changeset
4 # binary, create the file:
8dc79a437858 systemd: Small improvements to the unit configuration file:
Pascal Volk <user@localhost.localdomain.org>
parents: 12750
diff changeset
5 # `/etc/systemd/system/dovecot.service.d/service.conf'.
8dc79a437858 systemd: Small improvements to the unit configuration file:
Pascal Volk <user@localhost.localdomain.org>
parents: 12750
diff changeset
6 # In this file create a Service section and configure an Environment with
8dc79a437858 systemd: Small improvements to the unit configuration file:
Pascal Volk <user@localhost.localdomain.org>
parents: 12750
diff changeset
7 # the variable `OPTIONS'. For example:
8dc79a437858 systemd: Small improvements to the unit configuration file:
Pascal Volk <user@localhost.localdomain.org>
parents: 12750
diff changeset
8 #
8dc79a437858 systemd: Small improvements to the unit configuration file:
Pascal Volk <user@localhost.localdomain.org>
parents: 12750
diff changeset
9 # [Service]
8dc79a437858 systemd: Small improvements to the unit configuration file:
Pascal Volk <user@localhost.localdomain.org>
parents: 12750
diff changeset
10 # Environment='OPTIONS=-p'
8dc79a437858 systemd: Small improvements to the unit configuration file:
Pascal Volk <user@localhost.localdomain.org>
parents: 12750
diff changeset
11 #
8dc79a437858 systemd: Small improvements to the unit configuration file:
Pascal Volk <user@localhost.localdomain.org>
parents: 12750
diff changeset
12 # In the `Service' section you may also specify various other setting.
8dc79a437858 systemd: Small improvements to the unit configuration file:
Pascal Volk <user@localhost.localdomain.org>
parents: 12750
diff changeset
13 # If you have trouble with `Too many open files' you may set:
18751
b088511e1cdb systemd service: Fixed typos in the comment section.
Pascal Volk <user@localhost.localdomain.org>
parents: 18750
diff changeset
14 #LimitNOFILE=8192
18750
8dc79a437858 systemd: Small improvements to the unit configuration file:
Pascal Volk <user@localhost.localdomain.org>
parents: 12750
diff changeset
15 #
8dc79a437858 systemd: Small improvements to the unit configuration file:
Pascal Volk <user@localhost.localdomain.org>
parents: 12750
diff changeset
16 # If you want to allow the Dovecot services to produce core dumps, use:
18751
b088511e1cdb systemd service: Fixed typos in the comment section.
Pascal Volk <user@localhost.localdomain.org>
parents: 18750
diff changeset
17 #LimitCORE=infinity
18750
8dc79a437858 systemd: Small improvements to the unit configuration file:
Pascal Volk <user@localhost.localdomain.org>
parents: 12750
diff changeset
18
12439
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
19 [Unit]
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
20 Description=Dovecot IMAP/POP3 email server
18750
8dc79a437858 systemd: Small improvements to the unit configuration file:
Pascal Volk <user@localhost.localdomain.org>
parents: 12750
diff changeset
21 Documentation=man:dovecot(1)
8dc79a437858 systemd: Small improvements to the unit configuration file:
Pascal Volk <user@localhost.localdomain.org>
parents: 12750
diff changeset
22 Documentation=http://wiki2.dovecot.org/
12439
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
23 After=local-fs.target network.target
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
24
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
25 [Service]
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
26 Type=simple
18750
8dc79a437858 systemd: Small improvements to the unit configuration file:
Pascal Volk <user@localhost.localdomain.org>
parents: 12750
diff changeset
27 ExecStart=@sbindir@/dovecot -F $OPTIONS
8dc79a437858 systemd: Small improvements to the unit configuration file:
Pascal Volk <user@localhost.localdomain.org>
parents: 12750
diff changeset
28 ExecReload=@sbindir@/dovecot reload
12439
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
29 NonBlocking=yes
12750
324f9ca60539 systemd service: added [Install] section, so it can be used independently from dovecot.socket
Mike Kazantsev (sacrilege) <mk.fraggod@gmail.com>
parents: 12439
diff changeset
30
324f9ca60539 systemd service: added [Install] section, so it can be used independently from dovecot.socket
Mike Kazantsev (sacrilege) <mk.fraggod@gmail.com>
parents: 12439
diff changeset
31 [Install]
324f9ca60539 systemd service: added [Install] section, so it can be used independently from dovecot.socket
Mike Kazantsev (sacrilege) <mk.fraggod@gmail.com>
parents: 12439
diff changeset
32 WantedBy=multi-user.target