[Dovecot] Problems Creating Core Dumps
Dovecot 1.0.rc15 crashed on my FC4 server, but it didn't create a core dump. Upon further research, I found these lines tucked away in the /etc/rc.d/init.d/functions file:
# make sure it doesn't core dump anywhere unless requested ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0} >/dev/null 2>&1
The /etc/rc.d/init.d/functions file is a master file that is referenced by all of the init scripts, so I didn't want to change it. Instead, I created a file /etc/sysconfig/dovecot with the following line:
DAEMON_COREFILE_LIMIT=unlimited
If I'm reading the /etc/rc.d/init.d/functions file correctly, this should work, but my bash is rusty. I was hoping someone else could check my work.
Joseph D. Wagner
On Sun, 2006-11-19 at 21:28 -0800, Joseph D. Wagner wrote:
Dovecot 1.0.rc15 crashed on my FC4 server, but it didn't create a core dump.
Which process crashed? With segfault or something else?
If you mean imap/pop3 process, then you need to change mail_drop_priv_before_exec setting and also have a home dir (see http://dovecot.org/bugreport.html).
master and auth processes should write the core to /var/run/dovecot. login processes can't really be made to write core file.
participants (2)
-
Joseph D. Wagner
-
Timo Sirainen