分类: LINUX
2011-07-18 15:48:20
To enable core file creation for daemons:
# vi /etc/security/limits.conf
…
#* soft core 0
* soft core unlimited
…
# vi /etc/sysctl.conf
…
kernel.core_pattern = /var/cores/core-%e-%p-%t
fs.suid_dumpable = 2
kernel.core_uses_pid = 1
…
# sysctl -p
To enable core dumps for xinetd services, I just needed to install the Automatic Bug Report Tool (abrt), and start the service:
# yum install abrt-desktop
# service abrtd start