Commit 8571db6f authored by Jérome Perrin's avatar Jérome Perrin

erp5: enable mariadb core dump

https://mariadb.com/kb/en/enabling-core-dumps/
parent 73287db2
......@@ -42,6 +42,10 @@ setUpModule, SlapOSInstanceTestCase = makeModuleSetUpAndTestCaseClass(
class ERP5MariadbCrashTestCase(SlapOSInstanceTestCase):
__partition_reference__ = 'crash'
_save_instance_file_pattern_list = SlapOSInstanceTestCase._save_instance_file_pattern_list + (
'*/srv/mariadb/core',
)
@classmethod
def getInstanceParameterDict(cls):
return {
......
......@@ -132,6 +132,7 @@ template =
{{ variable }} \
{%- endfor %}
{%- endif %}
ulimit -c unlimited
exec "$basedir/bin/mysqld" --defaults-file='{{defaults_file}}' "$@"
{% endraw %}
......
......@@ -42,7 +42,7 @@ md5sum = d32417746fcf671d4e86a70379815039
[template-my-cnf]
filename = my.cnf.in
md5sum = 7944ec58a2c6ee74a56219bacebfd145
md5sum = 24fc9b93d4108d29a1ee3aa46583366c
[template-mariadb-initial-setup]
filename = mariadb_initial_setup.sql.in
......
......@@ -71,6 +71,9 @@ character_set_server = utf8mb4
collation_server = utf8mb4_general_ci
skip_character_set_client_handshake
# debugging
core_file
{% if 'ssl-key' in parameter_dict -%}
ssl_cert = {{ parameter_dict['ssl-crt'] }}
ssl_key = {{ parameter_dict['ssl-key'] }}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment