summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-08-17 14:24:32 +0200
committerMartin Liska <mliska@suse.cz>2022-08-17 14:52:17 +0200
commite5f78d8083aec7f27c6733b4c63528786a85ab8a (patch)
tree761e9d6c13534c2e2155b22e7e5084395ca1abed
parentdebuginfod: fix http_requests_total{type="debuginfo"} when dwz is used (diff)
downloadelfutils-e5f78d8083aec7f27c6733b4c63528786a85ab8a.tar.gz
elfutils-e5f78d8083aec7f27c6733b4c63528786a85ab8a.tar.bz2
elfutils-e5f78d8083aec7f27c6733b4c63528786a85ab8a.tar.xz
Add new debuginfod.sysconfig value DEBUGINFOD_EXTRA_ARGS
Split DEBUGINFOD_PATHS and put non-path arguments to the newly created variable called DEBUGINFOD_EXTRA_ARGS. Signed-off-by: Martin Liska <mliska@suse.cz>
-rw-r--r--config/debuginfod.service2
-rw-r--r--config/debuginfod.sysconfig3
2 files changed, 3 insertions, 2 deletions
diff --git a/config/debuginfod.service b/config/debuginfod.service
index b64d8cb9..4c7785a9 100644
--- a/config/debuginfod.service
+++ b/config/debuginfod.service
@@ -8,7 +8,7 @@ EnvironmentFile=/etc/sysconfig/debuginfod
8User=debuginfod 8User=debuginfod
9Group=debuginfod 9Group=debuginfod
10#CacheDirectory=debuginfod 10#CacheDirectory=debuginfod
11ExecStart=/usr/bin/debuginfod -d /var/cache/debuginfod/debuginfod.sqlite -p $DEBUGINFOD_PORT $DEBUGINFOD_VERBOSE $DEBUGINFOD_PRAGMAS $DEBUGINFOD_PATHS 11ExecStart=/usr/bin/debuginfod -d /var/cache/debuginfod/debuginfod.sqlite -p $DEBUGINFOD_PORT $DEBUGINFOD_VERBOSE $DEBUGINFOD_PRAGMAS $DEBUGINFOD_PATHS $DEBUGINFOD_EXTRA_ARGS
12# Stopping can take a long time if scanning of large archives is in progress 12# Stopping can take a long time if scanning of large archives is in progress
13TimeoutStopSec=60 13TimeoutStopSec=60
14PrivateTmp=yes 14PrivateTmp=yes
diff --git a/config/debuginfod.sysconfig b/config/debuginfod.sysconfig
index 890a1a25..ae49a5af 100644
--- a/config/debuginfod.sysconfig
+++ b/config/debuginfod.sysconfig
@@ -1,9 +1,10 @@
1# 1#
2DEBUGINFOD_PORT="8002" 2DEBUGINFOD_PORT="8002"
3DEBUGINFOD_EXTRA_ARGS="-t43200 -F -R"
3#DEBUGINFOD_VERBOSE="-v" 4#DEBUGINFOD_VERBOSE="-v"
4 5
5# some common places to find trustworthy ELF/DWARF files and RPMs 6# some common places to find trustworthy ELF/DWARF files and RPMs
6DEBUGINFOD_PATHS="-t43200 -F -R /usr/lib/debug /usr/bin /usr/libexec /usr/sbin /usr/lib /usr/lib64 /var/cache/yum /var/cache/dnf /var/lib/pulp" 7DEBUGINFOD_PATHS="/usr/lib/debug /usr/bin /usr/libexec /usr/sbin /usr/lib /usr/lib64 /var/cache/yum /var/cache/dnf /var/lib/pulp"
7 8
8# prefer reliability/durability over performance 9# prefer reliability/durability over performance
9#DEBUGINFOD_PRAGMAS="-D 'pragma synchronous=full;'" 10#DEBUGINFOD_PRAGMAS="-D 'pragma synchronous=full;'"