Mercurial > dovecot > core-2.2
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 |
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 | 19 [Unit] |
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 | 23 After=local-fs.target network.target |
24 | |
25 [Service] | |
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 | 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 |