2023-03-28 09:30:11 +00:00
|
|
|
From 1db882cea4fe51183076d11893e9efe855310948 Mon Sep 17 00:00:00 2001
|
2022-04-05 11:03:30 +00:00
|
|
|
From: Michal Sekletar <msekleta@redhat.com>
|
|
|
|
Date: Tue, 22 Feb 2022 13:24:11 +0100
|
|
|
|
Subject: [PATCH] core: decrease log level of messages about use of
|
|
|
|
KillMode=none
|
|
|
|
|
|
|
|
RHEL-only
|
|
|
|
|
2023-03-28 09:30:11 +00:00
|
|
|
Related: #2138081
|
2022-04-05 11:03:30 +00:00
|
|
|
---
|
|
|
|
src/core/load-fragment.c | 2 +-
|
|
|
|
src/core/unit.c | 2 +-
|
|
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c
|
2023-03-28 09:30:11 +00:00
|
|
|
index 1a5895346d..0b5c8acee4 100644
|
2022-04-05 11:03:30 +00:00
|
|
|
--- a/src/core/load-fragment.c
|
|
|
|
+++ b/src/core/load-fragment.c
|
2023-03-28 09:30:11 +00:00
|
|
|
@@ -834,7 +834,7 @@ int config_parse_kill_mode(
|
2022-04-05 11:03:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (m == KILL_NONE)
|
|
|
|
- log_syntax(unit, LOG_WARNING, filename, line, 0,
|
|
|
|
+ log_syntax(unit, LOG_DEBUG, filename, line, 0,
|
2023-03-28 09:30:11 +00:00
|
|
|
"Unit uses KillMode=none. "
|
2022-04-05 11:03:30 +00:00
|
|
|
"This is unsafe, as it disables systemd's process lifecycle management for the service. "
|
2023-03-28 09:30:11 +00:00
|
|
|
"Please update the service to use a safer KillMode=, such as 'mixed' or 'control-group'. "
|
2022-04-05 11:03:30 +00:00
|
|
|
diff --git a/src/core/unit.c b/src/core/unit.c
|
2023-03-28 09:30:11 +00:00
|
|
|
index 5af44aaf4a..4bb7e2d498 100644
|
2022-04-05 11:03:30 +00:00
|
|
|
--- a/src/core/unit.c
|
|
|
|
+++ b/src/core/unit.c
|
2023-03-28 09:30:11 +00:00
|
|
|
@@ -5510,7 +5510,7 @@ int unit_log_leftover_process_start(pid_t pid, int sig, void *userdata) {
|
2022-04-05 11:03:30 +00:00
|
|
|
|
|
|
|
/* During start we print a warning */
|
|
|
|
|
|
|
|
- log_unit_warning(userdata,
|
|
|
|
+ log_unit_debug(userdata,
|
|
|
|
"Found left-over process " PID_FMT " (%s) in control group while starting unit. Ignoring.\n"
|
|
|
|
"This usually indicates unclean termination of a previous run, or service implementation deficiencies.",
|
|
|
|
pid, strna(comm));
|