Mercurial > dovecot > core-2.2
annotate dovecot.service.in @ 19774:2a097608777a
dovecot.service: Fixed PIDFile path
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Fri, 19 Feb 2016 16:11:58 +0200 |
parents | f8cbc32dcd1e |
children | 5bf3271eb63b |
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] | |
19760
a46848c73d7f
dovecot: improve systemd support
Aki Tuomi <aki.tuomi@dovecot.net>
parents:
18751
diff
changeset
|
26 Type=forking |
a46848c73d7f
dovecot: improve systemd support
Aki Tuomi <aki.tuomi@dovecot.net>
parents:
18751
diff
changeset
|
27 ExecStart=@sbindir@/dovecot |
19774
2a097608777a
dovecot.service: Fixed PIDFile path
Timo Sirainen <timo.sirainen@dovecot.fi>
parents:
19772
diff
changeset
|
28 PIDFile=@rundir@/dovecot/master.pid |
19760
a46848c73d7f
dovecot: improve systemd support
Aki Tuomi <aki.tuomi@dovecot.net>
parents:
18751
diff
changeset
|
29 ExecReload=@bindir@/doveadm reload |
a46848c73d7f
dovecot: improve systemd support
Aki Tuomi <aki.tuomi@dovecot.net>
parents:
18751
diff
changeset
|
30 ExecStop=@bindir@/doveadm stop |
a46848c73d7f
dovecot: improve systemd support
Aki Tuomi <aki.tuomi@dovecot.net>
parents:
18751
diff
changeset
|
31 PrivateTmp=true |
12439 | 32 NonBlocking=yes |
19772
f8cbc32dcd1e
dovecot.service: Disabled ProtectSystem=full for now
Timo Sirainen <timo.sirainen@dovecot.fi>
parents:
19760
diff
changeset
|
33 # Enable this if your systemd is new enough to support it: |
f8cbc32dcd1e
dovecot.service: Disabled ProtectSystem=full for now
Timo Sirainen <timo.sirainen@dovecot.fi>
parents:
19760
diff
changeset
|
34 #ProtectSystem=full |
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
|
35 |
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
|
36 [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
|
37 WantedBy=multi-user.target |