I'm currently running RHEL7. I haven't been able to find a definitive explanation of how to disable core dump files. I can limit to number of core files that are produced, but I don't know how to disable them entirely. I limited the number of core files that get generated by adding
kernel.core_uses_pid = 0
kernel.core_pattern = core
to
/etc/sysctl.conf
and running sudo sysctl -p
This limits core file generation to a single file that gets rewritten each time there's a core dump. But I'd like to stop this file from being generated altogether. Thanks!
EDIT: I also tried this:
Add the line Storage:none
to
/etc/systemd/coredump.conf
This didn't change anything, core files still get produced.
Asked by GreNIX
(129 rep)
Jul 25, 2018, 06:22 PM
Last activity: May 2, 2025, 11:04 AM
Last activity: May 2, 2025, 11:04 AM