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
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]
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
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
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