There are some soft errors when: systemctl restart postfix is executed Reproducible: Always Steps to Reproduce: 1.systemctl restart postfix 2. 3. Actual Results: restorecon[40673]: /usr/sbin/restorecon: lstat(/var/spool/postfix/pid/master.pid) failed: No such file or directory postfix[40737]: egrep: warning: egrep is obsolescent; using grep -E Expected Results: no errors should appear systemd[1]: Starting postfix.service - Postfix Mail Transport Agent... restorecon[40673]: /usr/sbin/restorecon: lstat(/var/spool/postfix/pid/master.pid) failed: No such file or directory postfix[40737]: egrep: warning: egrep is obsolescent; using grep -E postfix/postfix-script[40744]: starting the Postfix mail system postfix/master[40746]: daemon started -- version 3.7.4, configuration /etc/postfix systemd[1]: Started postfix.service - Postfix Mail Transport Agent. The egrep issue is new and I am sure a simple search for the command and a change where it is used will fix this soft error. Also it looks to me like the restorecon command is executed before the pid file is created as its there after the restart is completed.
I merged the fix: https://src.fedoraproject.org/rpms/postfix/pull-request/9
FEDORA-2023-4ee4cc6721 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-4ee4cc6721
FEDORA-2023-45d0eabc36 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-45d0eabc36
FEDORA-2023-45d0eabc36 has been pushed to the Fedora 38 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-45d0eabc36` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-45d0eabc36 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2023-18495e9c7c has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report.
Thanks for the patch. I have installed the patch and can confirm the restorecon[40673]: /usr/sbin/restorecon: lstat(/var/spool/postfix/pid/master.pid) failed: No such file or directory portion of the error appears to be fixed. the use of egrep does still appear to be there. postfix[53786]: egrep: warning: egrep is obsolescent; using grep -E this is a soft error so hopefully is fixed in the F39 version (I am on F38)
FEDORA-2023-45d0eabc36 has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report.
I have done a standard dnf upgrade on another machine and it appears to correctly fix the restorecon problem as expected. From repo : updates unlike my test which was From repo : updates-testing Great work thanks.