annotate dovecot.service.in @ 22614:cf66220d281e

doveadm proxy: Don't crash if remote doesn't support log proxying
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Sat, 14 Oct 2017 12:54:18 +0300
parents 3ceea78a5cc8
children
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
12439
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
7 [Unit]
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
8 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
9 Documentation=man:dovecot(1)
8dc79a437858 systemd: Small improvements to the unit configuration file:
Pascal Volk <user@localhost.localdomain.org>
parents: 12750
diff changeset
10 Documentation=http://wiki2.dovecot.org/
12439
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
11 After=local-fs.target network.target
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
12
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
13 [Service]
19760
a46848c73d7f dovecot: improve systemd support
Aki Tuomi <aki.tuomi@dovecot.net>
parents: 18751
diff changeset
14 Type=forking
a46848c73d7f dovecot: improve systemd support
Aki Tuomi <aki.tuomi@dovecot.net>
parents: 18751
diff changeset
15 ExecStart=@sbindir@/dovecot
19798
5bf3271eb63b dovecot.service: Fixed PIDFile path - removed extra /dovecot/ directory from the middle.
Timo Sirainen <timo.sirainen@dovecot.fi>
parents: 19774
diff changeset
16 PIDFile=@rundir@/master.pid
19760
a46848c73d7f dovecot: improve systemd support
Aki Tuomi <aki.tuomi@dovecot.net>
parents: 18751
diff changeset
17 ExecReload=@bindir@/doveadm reload
a46848c73d7f dovecot: improve systemd support
Aki Tuomi <aki.tuomi@dovecot.net>
parents: 18751
diff changeset
18 ExecStop=@bindir@/doveadm stop
a46848c73d7f dovecot: improve systemd support
Aki Tuomi <aki.tuomi@dovecot.net>
parents: 18751
diff changeset
19 PrivateTmp=true
12439
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
20 NonBlocking=yes
19772
f8cbc32dcd1e dovecot.service: Disabled ProtectSystem=full for now
Timo Sirainen <timo.sirainen@dovecot.fi>
parents: 19760
diff changeset
21 # 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
22 #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
23
21347
3ceea78a5cc8 dovecot.service.in: Improve [service] examples
Timo Sirainen <timo.sirainen@dovecot.fi>
parents: 19798
diff changeset
24 # You can add environment variables with e.g.:
3ceea78a5cc8 dovecot.service.in: Improve [service] examples
Timo Sirainen <timo.sirainen@dovecot.fi>
parents: 19798
diff changeset
25 #Environment='CORE_OUTOFMEM=1'
3ceea78a5cc8 dovecot.service.in: Improve [service] examples
Timo Sirainen <timo.sirainen@dovecot.fi>
parents: 19798
diff changeset
26 # If you have trouble with `Too many open files' you may set:
3ceea78a5cc8 dovecot.service.in: Improve [service] examples
Timo Sirainen <timo.sirainen@dovecot.fi>
parents: 19798
diff changeset
27 #LimitNOFILE=8192
3ceea78a5cc8 dovecot.service.in: Improve [service] examples
Timo Sirainen <timo.sirainen@dovecot.fi>
parents: 19798
diff changeset
28 # If you want to allow the Dovecot services to produce core dumps, use:
3ceea78a5cc8 dovecot.service.in: Improve [service] examples
Timo Sirainen <timo.sirainen@dovecot.fi>
parents: 19798
diff changeset
29 #LimitCORE=infinity
3ceea78a5cc8 dovecot.service.in: Improve [service] examples
Timo Sirainen <timo.sirainen@dovecot.fi>
parents: 19798
diff changeset
30
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
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