Add systemd units (examples)
[exim.git] / configs / system-integration / systemd / daemon / exim.service
1 [Unit]
2 Description=Exim MTA (as daemon)
3 Documentation=man:exim
4 Documentation=https://exim.org/docs.html
5
6 Requires=network.target
7 After=networking.target
8
9 [Service]
10 Environment=DAEMON_OPTS=
11 Environment=QUEUE_OPTS=-q15m
12 EnvironmentFile=-/etc/default/{{exim}}
13
14 Type=exec
15 ExecStart={{exim}} -bdf $DAEMON_OPTS $QUEUE_OPTS
16 ExecReload=kill -HUP ${MAINPID}
17
18 # If you do not need local deliveries, enabling the
19 # next option can improve security
20 #NoNewPrivileges=yes
21
22 ProtectSystem=strict
23 ReadWriteDirectories={{spooldir}}
24 ReadWriteDirectories={{logdir}}
25
26 Slice=exim.slice
27
28 [Install]
29 WantedBy=multi-user.target