add ExecStartPost in sm-client.service

This commit is contained in:
liaichun 2021-03-15 15:11:39 +08:00
parent 7c7320ba50
commit d82a16e51d
2 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Name: sendmail
Version: 8.16.1
Release: 3
Release: 4
Summary: A classic mail transfer agent from the Unix world
License: Sendmail
URL: http://www.sendmail.org/
@ -468,6 +468,12 @@ exit 0
%changelog
* Mon Mar 15 2021 Aichun Li <liaichun@huawei.com> - 8.16.1-4
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add ExecStartPost in sm-client.service
* Fri Jan 15 2021 gaihuiying <gaihuiying1@huawei.com> - 8.16.1-3
- Type:requirement
- ID:NA

View File

@ -15,6 +15,7 @@ ExecStartPre=/bin/chown smmsp:smmsp /run/sm-client.pid
ExecStartPre=-/sbin/restorecon /run/sm-client.pid
ExecStartPre=-/etc/mail/make
ExecStart=/usr/sbin/sendmail -L sm-msp-queue -Ac $SENDMAIL_OPTS $SENDMAIL_OPTARG
ExecStartPost=/usr/bin/sleep 0.1
[Install]
WantedBy=multi-user.target