diff --git a/postgres-appliance/runit/patroni/run b/postgres-appliance/runit/patroni/run index 9055c08c3..c92fe9708 100755 --- a/postgres-appliance/runit/patroni/run +++ b/postgres-appliance/runit/patroni/run @@ -18,7 +18,10 @@ then fi # Enable core dumps -ulimit -c unlimited +if ! ulimit -c unlimited +then + echo "Failed to set unlimited size for coredump" +fi # Only small subset of environment variables is allowed. We don't want accidentally disclose sensitive information for E in $(printenv -0 | tr '\n' ' ' | sed 's/\x00/\n/g' | grep -vE '^(KUBERNETES_(SERVICE|PORT|ROLE)[_=]|((POD_(IP|NAMESPACE))|HOSTNAME|PATH|PGHOME|LC_ALL|ENABLE_PG_MON)=)' | sed 's/=.*//g'); do