On 01/07/2015 12:19 AM, Mitsutoshi NAKANO wrote:
I am using openSUSE 13.2 x64.
I want to change core file size to unlimited.
I changed /etc/security/limits.conf.
* soft core unlimited
And reboot openSUSE, but I got that core file size is 0.
ulimit -c 0
I wrote "ulimit -c unlimited" in ~/.bashrc, so I got unlimited core file size.
ulimit -c unlimited
But I want to get unlimited core file size when booting openSUSE.
(Especially, I want to debug daemons...)
How can I get unlimited core file size when booting openSUSE?
Systemd takes all cores from the daemons. You can set the default core size of daemos started by systemd in /etc/systemd/system.conf (Setting is DefaultLimitCORE)- see the manpage systemd-system.conf. To retreive the core files, use systemd-coredumpctl.