Chinaunix首页 | 论坛 | 博客
  • 博客访问: 292861
  • 博文数量: 108
  • 博客积分: 4260
  • 博客等级: 上校
  • 技术积分: 1145
  • 用 户 组: 普通用户
  • 注册时间: 2008-02-21 13:22
文章分类

全部博文(108)

文章存档

2011年(40)

2010年(22)

2009年(17)

2008年(29)

我的朋友

分类: LINUX

2011-02-11 14:21:13

HOWTO enable core-dumps

To enable core dumps for all daemon, please follow these steps:

Edit the /etc/profile. At line 26 of the file, replace this line:

ulimit -S -c 0 > /dev/null 2>&1

with this line:

ulimit -c unlimited >/dev/null 2>&1

Replace this line (around line 138 on Fedora) in /etc/init.d/functions

ulimit -S -c 0 >/dev/null 2>&1

with this:

ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0} >/dev/null 2>&1

(this is now default on Fedora Core <3)

Enable core-dumping globally by editing the /etc/sysconfig/init file and adding the line:

DAEMON_COREFILE_LIMIT='unlimited'

Enable it for specific daemons by adding this line in the /etc/sysconfig/$daemon:

DAEMON_COREFILE_LIMIT='unlimited'

Optionally, enable core dump for SUID programs:

echo 1 > /proc/sys/kernel/suid_dumpable

Edit the /etc/sysctl.conf and add the following:

kernel.suid_dumpable = 1
kernel.core_uses_pid = 1

Then reload the settings in /etc/sysctl.conf:

sysctl -p
阅读(478) | 评论(0) | 转发(0) |
0

上一篇:游戏列表

下一篇:Redhat bridging

给主人留下些什么吧!~~