[Dovecot] Server power loss and "Dovecot is already running with PID xxx"

Timo Sirainen tss at iki.fi
Mon Aug 4 01:17:42 EEST 2008


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..


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080804/a1e66993/attachment.bin 


More information about the dovecot mailing list