Add systemd units (examples)
[exim.git] / configs / system-integration / systemd / socket / exim.service
1 [Unit]
2 Description=Exim MTA (socket activated)
3 Documentation=man:exim
4 Documentation=https://exim.org/docs.html
5 PartOf=exim.socket
6
7 [Service]
8 Type=exec
9 Environment=INACTIVITY_TIMEOUT=5m
10 EnvironmentFile=-/etc/default/exim
11
12 ExecStart=exim -bw${INACTIVITY_TIMEOUT}
13
14 StandardInput=socket
15 StandardError=journal
16
17 # If you do not need local deliveries, enabling the
18 # next option can improve security
19 #NoNewPrivileges=yes
20
21 ProtectSystem=strict
22 ReadWriteDirectories={{spooldir}}
23 ReadWriteDirectories={{logdir}}
24 ReadWriteDirectories=/var/mail /var/spool/mail
25
26 Slice=exim.slice