refactor:修改sapp和certstore的minidump生成的路径

This commit is contained in:
fumingwei
2021-07-28 10:59:32 +08:00
parent 8dd23dfda9
commit 06bffe2143
6 changed files with 12 additions and 7 deletions

View File

@@ -0,0 +1,6 @@
#Type Path Mode User Group Age Argument
d /var/log/certstore/ 0755 - - 7d -
d /run/certstore/foreign_files 0755 - - - -
d /run/certstore/crashreport 0755 - - 30d -
L /opt/tsg/certstore/logs - - - - /var/log/certstore
L /opt/tsg/certstore/foreign_files - - - - /run/certstore/foreign_files

View File

@@ -4,8 +4,6 @@ DEBUG_SWITCH = 1
RUN_LOG_PATH = "conf/zlog.conf"
[breakpad]
{% raw %}breakpad_upload_url= {{ sentry_url }}
{% endraw %}
{% raw %}{% if coredump.format == 'none' %}
disable_coredump=1
enable_breakpad=0
@@ -28,7 +26,7 @@ RUN_LOG_PATH = "conf/zlog.conf"
{% endif %}
{% endif %}
{% endraw %}
breakpad_minidump_dir="/tmp/crashreport"
breakpad_minidump_dir="/run/certstore/crashreport "
[CONFIG]
#Number of running threads
thread-nu = 4

View File

@@ -207,14 +207,14 @@ dictator_enable=1
enable_breakpad=1
{% if coredump.collect == 'sentry' %}
enable_breakpad_upload=1
breakpad_upload_url={{ coredump.sentry_url }}
breakpad_upload_url="{{ coredump.sentry_url }}"
{% endif %}
{% if coredump.collect == 'local' %}
enable_breakpad_upload=0
{% endif %}
{% endif %}
{% endraw %}
breakpad_minidump_dir="/tmp/crashreport"
breakpad_minidump_dir="/run/sapp/crashreport"
### note:
### These configurations format is complex and difficult to describe with toml grammar,

View File

@@ -1,5 +1,6 @@
#Type Path Mode User Group Age Argument
d /var/log/sapp/ 0755 - - 2d -
d /run/sapp/alerts_files/ 0755 - - 2d -
d /run/sapp/crashreport 0755 - - 30d -
L /opt/tsg/sapp/log - - - - /var/log/sapp
L /opt/tsg/sapp/alerts_files - - - - /run/sapp/alerts_files

View File

@@ -9,7 +9,7 @@ cm:
db_dynamic: 1
coredump:
enable: 1/0
format: minidump/core/none
collect: local/sentry
sentry_url: http://127.0.0.1:9000/api/2/minidump/?sentry_key=3203b43fd5384a7dbe6a48ecb1f3c595

View File

@@ -9,7 +9,7 @@ cm:
db_dynamic: 1
coredump:
enable: 1/0
format: minidump/core/none
collect: local/sentry
sentry_url: http://127.0.0.1:9000/api/2/minidump/?sentry_key=3203b43fd5384a7dbe6a48ecb1f3c595