kill SIGABRT does not generate core file from daemon started from crontab.
Posted
by
Guma
on Server Fault
See other posts from Server Fault
or by Guma
Published on 2011-02-22T21:53:40Z
Indexed on
2011/02/22
23:27 UTC
Read the original article
Hit count: 267
I am running CentOS 5.5 and working on server application that sometimes I need to force core dump so I can see what is going on. If I start my server from shell and send kill SIGABRT, a core file is created. If I start same program from crontab and then I send the same signal to it the server is "killed" but no core file is generated. Does any one know why is that and what need to be added to my code or changed in system settings to allow core file generation?
Just a side note
I have ulimit set to unlimited in /etc/profile
I have set
- kernel.core_uses_pid = 1
- kernel.core_pattern=/var/cores/%h-%e-%p.core
in /etc/sysctl.conf
Also my server app was added to crontab under same login id as I am running it from shell.
Any help greatly appreciated
© Server Fault or respective owner