From 411093b40ef956eb7b3ecdc1d8b9d47ba2492328 Mon Sep 17 00:00:00 2001 From: f Date: Sat, 30 Jul 2022 11:56:08 -0300 Subject: [PATCH] disable coredumps they waste space, hang the server and we don't analyze them --- config.yml | 1 + templates/etc/sysctl.d/coredump.conf.j2 | 1 + 2 files changed, 2 insertions(+) create mode 100644 templates/etc/sysctl.d/coredump.conf.j2 diff --git a/config.yml b/config.yml index 9d27ead..2a8791a 100644 --- a/config.yml +++ b/config.yml @@ -35,6 +35,7 @@ templates: - "/etc/ipset.d/blocklist6" - "/etc/syslog-ng/syslog-ng.conf" - "/etc/sysctl.d/congestion.conf" +- "/etc/sysctl.d/coredump.conf" services: - runlevel: "sysinit" service: "devfs" diff --git a/templates/etc/sysctl.d/coredump.conf.j2 b/templates/etc/sysctl.d/coredump.conf.j2 new file mode 100644 index 0000000..1de438b --- /dev/null +++ b/templates/etc/sysctl.d/coredump.conf.j2 @@ -0,0 +1 @@ +kernel.core_pattern=/dev/null