2011-07-14 09:01:07 +00:00
|
|
|
[Unit]
|
2011-07-18 20:47:26 +00:00
|
|
|
Description=Sendmail Mail Transport Client
|
2011-07-14 09:01:07 +00:00
|
|
|
After=syslog.target network.target sendmail.service
|
2011-11-23 13:58:17 +00:00
|
|
|
Conflicts=postfix.service exim.service
|
|
|
|
BindTo=sendmail.service
|
2017-02-23 12:51:30 +00:00
|
|
|
StartLimitIntervalSec=0
|
2011-07-14 09:01:07 +00:00
|
|
|
|
|
|
|
[Service]
|
2011-07-18 20:47:26 +00:00
|
|
|
Type=forking
|
|
|
|
PIDFile=/run/sm-client.pid
|
2011-07-25 14:16:30 +00:00
|
|
|
Environment=SENDMAIL_OPTS=-q1h
|
2011-07-14 09:01:07 +00:00
|
|
|
EnvironmentFile=-/etc/sysconfig/sendmail
|
2011-07-18 20:47:26 +00:00
|
|
|
ExecStartPre=/bin/touch /run/sm-client.pid
|
|
|
|
ExecStartPre=/bin/chown smmsp:smmsp /run/sm-client.pid
|
|
|
|
ExecStartPre=-/sbin/restorecon /run/sm-client.pid
|
2011-07-25 14:16:30 +00:00
|
|
|
ExecStartPre=-/etc/mail/make
|
|
|
|
ExecStart=/usr/sbin/sendmail -L sm-msp-queue -Ac $SENDMAIL_OPTS $SENDMAIL_OPTARG
|
2011-07-14 09:01:07 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|