From a79ddd3f05f9fb43a073bb45f24410fdfae7515b Mon Sep 17 00:00:00 2001 From: Maximilian Moehl Date: Tue, 25 Apr 2023 10:48:04 +0200 Subject: [PATCH] feat: enable core-dumps This commit sets the limit for core-dump files to unlimited before starting HAProxy. This allows HAProxy to produce a core-dump file on crashes. See: https://man.archlinux.org/man/bash.1.en#ulimit --- jobs/haproxy/templates/haproxy_wrapper.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jobs/haproxy/templates/haproxy_wrapper.erb b/jobs/haproxy/templates/haproxy_wrapper.erb index bb928f1d..90260c3a 100755 --- a/jobs/haproxy/templates/haproxy_wrapper.erb +++ b/jobs/haproxy/templates/haproxy_wrapper.erb @@ -68,6 +68,8 @@ update_certs() { <%- end -%> } +sudo ulimit -c unlimited + # unpack base certs and add optional external certs update_certs