From 1c03fa79dc0b0f96db3b5cb5b0189a42378f66ec Mon Sep 17 00:00:00 2001 From: eaglegai Date: Tue, 15 Feb 2022 15:43:40 +0800 Subject: [PATCH] add ExecStartPost in sendmail.service --- sendmail.service | 1 + sendmail.spec | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/sendmail.service b/sendmail.service index 9a7c9c3..597c2c3 100644 --- a/sendmail.service +++ b/sendmail.service @@ -13,6 +13,7 @@ EnvironmentFile=-/etc/sysconfig/sendmail ExecStartPre=-/etc/mail/make ExecStartPre=-/etc/mail/make aliases ExecStart=/usr/sbin/sendmail -bd $SENDMAIL_OPTS $SENDMAIL_OPTARG +ExecStartPost=/usr/bin/sleep 0.1 ExecReload=/usr/bin/kill -HUP $MAINPID # hack to allow async reload to complete, otherwise systemd may signal error ExecReload=/usr/bin/sleep 2 diff --git a/sendmail.spec b/sendmail.spec index d07ca20..e0e2064 100644 --- a/sendmail.spec +++ b/sendmail.spec @@ -1,6 +1,6 @@ Name: sendmail Version: 8.17.1 -Release: 1 +Release: 2 Summary: A classic mail transfer agent from the Unix world License: Sendmail URL: http://www.sendmail.org/ @@ -467,6 +467,12 @@ exit 0 %changelog +* Tue Feb 15 2022 gaihuiying - 8.17.1-2 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:add ExecStartPost in sendmail.service + * Fri Dec 24 2021 yanglu - 8.17.1-1 - Type:bugfix - ID:NA -- Gitee