On Aug 2, 2008, at 8:22 PM, Pekka Savola wrote:

It doesn't seem to be that the current logic is working; there is no program with the PID that's in master.pid, and dovecot (1.0.7 + RHEL patches) refuses to start.

root: /root$ /sbin/service dovecot start
Starting Dovecot Imap: Error: Dovecot is already running with PID 2746 (read from /var/run/dovecot/master.pid)
Fatal: Invalid configuration in /etc/dovecot.conf
                                                          [FAILED]
root: /root$ more /var/run/dovecot/master.pid
2746
root: /root$ ps auxw | grep 2746
root 31714 0.0 0.1 4116 584 pts/1 R+ 20:19 0:00 grep 2746

SELinux perhaps? It checks this by kill()ing the process and seeing if it returns ESRCH. If not, it assumes the process exists. If you've SELinux perhaps it always return EPERM to the call..


Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to