[RFC PATCH 1/6] Find and link libsystemd

2021-03-07 Thread Victor Westerhuis
Signed-off-by: Victor Westerhuis --- configure.ac | 12 debuginfod/Makefile.am | 7 +++ 2 files changed, 19 insertions(+) diff --git a/configure.ac b/configure.ac index aa8439e8..8d52b666 100644 --- a/configure.ac +++ b/configure.ac @@ -773,6 +773,17 @@ AS_IF([test

[RFC PATCH 4/6] Use cache directory from systemd

2021-03-07 Thread Victor Westerhuis
Signed-off-by: Victor Westerhuis --- config/debuginfod.service | 2 +- debuginfod/debuginfod.cxx | 7 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/config/debuginfod.service b/config/debuginfod.service index 6c434705..c99b5406 100644 --- a/config/debuginfod.service +++ b

[RFC PATCH 0/6] Allow systemd activation for debuginfod

2021-03-07 Thread Victor Westerhuis
ed to split the series into different ways of integration. I'm not sure if watchdog support is really useful, since the main loop doesn't do any work. If it isn't, I can drop it. Victor Westerhuis (6): Find and link libsystemd Allow socket activation by systemd Notify systemd whe

[RFC PATCH 2/6] Allow socket activation by systemd

2021-03-07 Thread Victor Westerhuis
Signed-off-by: Victor Westerhuis --- debuginfod/debuginfod.cxx | 161 -- 1 file changed, 121 insertions(+), 40 deletions(-) diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx index 2aecc049..caced48c 100644 --- a/debuginfod/debuginfod.cxx

[RFC PATCH 3/6] Notify systemd when ready and stopping

2021-03-07 Thread Victor Westerhuis
Signed-off-by: Victor Westerhuis --- config/debuginfod.service | 1 + debuginfod/debuginfod.cxx | 6 ++ 2 files changed, 7 insertions(+) diff --git a/config/debuginfod.service b/config/debuginfod.service index b64d8cb9..6c434705 100644 --- a/config/debuginfod.service +++ b/config

[RFC PATCH 5/6] Report error exit reason to systemd

2021-03-07 Thread Victor Westerhuis
Signed-off-by: Victor Westerhuis --- debuginfod/debuginfod.cxx | 74 --- 1 file changed, 46 insertions(+), 28 deletions(-) diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx index 9542c5e2..35b5fc18 100644 --- a/debuginfod/debuginfod.cxx +++ b

[RFC PATCH 6/6] Support systemd watchdog

2021-03-07 Thread Victor Westerhuis
Signed-off-by: Victor Westerhuis --- debuginfod/debuginfod.cxx | 35 +-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx index 35b5fc18..b31c77d3 100644 --- a/debuginfod/debuginfod.cxx +++ b