summarylogtreecommitdiffstats
path: root/sendmail.service
blob: f6e65645e2623cc1f6c0438b21d247910bee542f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=Sendmail Mail Transport Agent
After=syslog.target network.target
Conflicts=postfix.service exim.service
Wants=sm-client.service

[Service]
Type=forking
PIDFile=/run/sendmail.pid
EnvironmentFile=/etc/conf.d/sendmail
ExecStartPre=-/usr/bin/newaliases
ExecStart=/usr/sbin/sendmail -bd $SENDMAIL_OPTS $SENDMAIL_OPTARG
ExecReload=/usr/bin/kill -HUP $MAINPID
# hack to allow async reload to complete, otherwise systemd may signal error
ExecReload=/usr/bin/sleep 2

[Install]
WantedBy=multi-user.target
Also=sm-client.service