RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2055915 - postfix master.pid file not deleted at postfix stop if postfix had been started using postfix start command
Summary: postfix master.pid file not deleted at postfix stop if postfix had been start...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: postfix
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jaroslav Škarvada
QA Contact: František Hrdina
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-17 22:50 UTC by Jaroslav Škarvada
Modified: 2022-05-17 13:50 UTC (History)
1 user (show)

Fixed In Version: postfix-3.5.9-18.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-17 13:50:36 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-112795 0 None None None 2022-02-17 22:51:48 UTC
Red Hat Product Errata RHBA-2022:2598 0 None None None 2022-05-17 13:50:40 UTC

Description Jaroslav Škarvada 2022-02-17 22:50:14 UTC
This bug was initially created as a copy of Bug #2028015

I am copying this bug because: 



Description of problem: If postfix is started from the command line rather than at boot, then when postfix is stopped (whether by postfix stop or by shutdown) the master.pid file doesn't get deleted, so then at next boot postfix doesn't start (but does delete the master.pid file).


Version-Release number of selected component (if applicable):
postfix 2:3.5.8-1.el8


How reproducible: Always


Steps to Reproduce (as root):
1. If postfix is already running, execute postfix stop.

2. If the just-stopped postfix had been started at boot time, then there should be and is no /var/spool/postfix/pid/master.pid file existing. (If it had been started by postfix start from the command line, this file still exists even though the pid in it has stopped.)

3. Execute postfix start.

4. Note that /var/spool/postfix/pid/master.pid now contains the pid of the running postfix/master process.

5. Execute postfix stop.

6. Note that /var/spool/postfix/pid/master.pid still exists, even though the master process has been stopped. (Don't delete it yet though.)

7. Reboot the machine.

8. Note that postfix fails to start, leaving the message 

postfix/postfix-script[1959]: fatal: the Postfix mail system is already running

in /var/log/maillog .

9. Note, however, that /var/spool/postfix/pid/master.pid has now been deleted.

10. Reboot the machine again - this time postfix starts normally.

Actual results: As noted in point 6 above.


Expected results: Whenever postfix is stopped, no matter how it has been started, the master.pid file should be deleted.


Additional info:

Comment 10 errata-xmlrpc 2022-05-17 13:50:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: postfix), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:2598


Note You need to log in before you can comment on or make changes to this bug.