The /proc/sys/kernel/core_pattern
configuration setting is set when the apport
crash reporting service starts on system boot. So the first step in the process would be to disable apport
. This can be done by editing the /etc/default/apport
file, and setting enabled=0
.
At this point, the kernel default core pattern should remain on boot. If you want to switch to some other pattern you can do this by placing a file in /etc/sysctl.d
that ends in .conf
(e.g. 60-core-pattern.conf). It's contents should look something like this (adjusting for your desired pattern):
kernel.core_pattern = core
That should cause your custom pattern to be loaded on boot. You should be able to test it without rebooting by running sudo sysctl --system
.
--system
option was added after 12.04. – James Henstridge Feb 15 '14 at 01:15