Postfix master dead but pid file exists

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Postfix master dead but pid file exists

Jayanta_cesc
Dear List,

We have a mail server running on RHEL 6.2 with the following components :-
1. Postfix
2. Openldap
3. Courier-authlib
4. Courier-imap
5. SASL
6. Maildrop

The problem is the postfix status is showing “master dead but pid file
exists” after sometime. The main.cf file and the output of postconf –d is
attached herein. I have also gone through the log files but could not find
any errors.

Please help me resolve this issue.



Thanks & Regards,
Jayanta Ghosh

postconf_output (24K) Download Attachment
main.cf (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Postfix master dead but pid file exists

Viktor Dukhovni
On Sat, Jun 08, 2013 at 09:35:15AM +0530, [hidden email] wrote:

> The problem is the postfix status is showing ?master dead but pid file
> exists? after sometime. The main.cf file and the output of postconf ?d is
> attached herein. I have also gone through the log files but could not find
> any errors.

This is a non-problem.  There is no reasonable expectation that
the pid file is sure to be deleted when Postfix is not running.

Perhaps you can describe your real goal, why you are trying to look
at the pid file, rather than the non-problem (the pid file not
meeting naive expectations).

Are you trying to monitor system health?  Stop Postfix? ...

--
        Viktor.
Reply | Threaded
Open this post in threaded view
|

RE: Postfix master dead but pid file exists

Jayanta_cesc
In reply to this post by Jayanta_cesc
Please tell me how to find out that some other component has locked the
pid files. I have done the following things to find out :-

[root@drmail1 ~]# /etc/init.d/postfix status
master dead but pid file exists
[root@drmail1 ~]# ps -ef | grep postfix
root      1412     1  0 Jun07 ?        00:00:00 /usr/libexec/postfix/master
postfix   1415  1412  0 Jun07 ?        00:00:00 qmgr -l -t fifo -u
postfix  16286  1412  0 13:37 ?        00:00:00 pickup -l -t fifo -u
root     16452 16416  0 13:52 pts/0    00:00:00 grep postfix
[root@drmail1 ~]#

Regards,
Jayanta

-----Original Message-----
From: Nikolas Kallis [mailto:[hidden email]]
Sent: Saturday, June 08, 2013 9:47 AM
To: [hidden email]
Subject: Re: Postfix master dead but pid file exists

On 08/06/13 14:05, [hidden email] wrote:

> Dear List,
>
> We have a mail server running on RHEL 6.2 with the following components :-
> 1. Postfix
> 2. Openldap
> 3. Courier-authlib
> 4. Courier-imap
> 5. SASL
> 6. Maildrop
>
> The problem is the postfix status is showing “master dead but pid file
> exists” after sometime. The main.cf file and the output of postconf –d
> is attached herein. I have also gone through the log files but could
> not find any errors.
>
> Please help me resolve this issue.
>
>
>
> Thanks & Regards,
> Jayanta Ghosh
>
It may be that one of the following components has read and locked the pid
file.


Reply | Threaded
Open this post in threaded view
|

Re: Postfix master dead but pid file exists

Wietse Venema
[hidden email]:
> Please tell me how to find out that some other component has locked the
> pid files. I have done the following things to find out :-
>
> [root@drmail1 ~]# /etc/init.d/postfix status
> master dead but pid file exists

Please file a bug report with REDHAT. They have broken Postfix status
reports. I am not responsible for bugs that other people add.

With Postfix as released by me:

# postfix status
postfix/postfix-script: the Postfix mail system is running: PID: 1205
# ps ax | grep master | grep -v grep
 1205  ??  Ss     0:14.23 /usr/libexec/postfix/master -w

And on a system running multiple Postfix instances:

# postfix status
postfix/postfix-script: the Postfix mail system is running: PID: 1366
postfix-m1/postfix-script: the Postfix mail system is running: PID: 1601
# ps ax | grep master | grep -v grep
 1366  ??  Is     0:14.40 /usr/libexec/postfix/master -w
 1601  ??  Is     0:31.61 /usr/libexec/postfix/master -w

        Wietse