sendmail/sendmail.service

24 lines
662 B
SYSTEMD
Raw Permalink Normal View History

2020-01-01 00:11:22 +08:00
[Unit]
Description=Sendmail Mail Transport Agent
After=syslog.target network.target
Conflicts=postfix.service exim.service
Wants=sm-client.service
StartLimitIntervalSec=0
[Service]
Type=forking
PIDFile=/run/sendmail.pid
Environment=SENDMAIL_OPTS=-q1h
EnvironmentFile=-/etc/sysconfig/sendmail
ExecStartPre=-/etc/mail/make
ExecStartPre=-/etc/mail/make aliases
ExecStart=/usr/sbin/sendmail -bd $SENDMAIL_OPTS $SENDMAIL_OPTARG
2022-03-21 16:51:46 +08:00
ExecStartPost=/usr/bin/sleep 0.1
2020-01-01 00:11:22 +08:00
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