784b94
[Unit]
784b94
Description=Sendmail Mail Transport Agent
784b94
After=syslog.target network.target
784b94
Conflicts=postfix.service exim.service
784b94
Wants=sm-client.service
784b94
StartLimitIntervalSec=0
784b94
784b94
[Service]
784b94
Type=forking
784b94
PIDFile=/run/sendmail.pid
784b94
Environment=SENDMAIL_OPTS=-q1h
784b94
EnvironmentFile=-/etc/sysconfig/sendmail
784b94
ExecStartPre=-/etc/mail/make
784b94
ExecStartPre=-/etc/mail/make aliases
784b94
ExecStart=/usr/sbin/sendmail -bd $SENDMAIL_OPTS $SENDMAIL_OPTARG
784b94
ExecReload=/usr/bin/kill -HUP $MAINPID
784b94
# hack to allow async reload to complete, otherwise systemd may signal error
784b94
ExecReload=/usr/bin/sleep 2
784b94
784b94
[Install]
784b94
WantedBy=multi-user.target
784b94
Also=sm-client.service