File 1009-Drop-or-soften-some-of-the-deprecation-warnings.patch of Package systemd.26702
From c5bcb6a6d4cc1e6622148c8ab850ad1f1d7102c5 Mon Sep 17 00:00:00 2001
From: Franck Bui <fbui@suse.com>
Date: Thu, 21 Oct 2021 11:29:31 +0200
Subject: [PATCH 1009/1009] Drop or soften some of the deprecation warnings
- Reword the deprecation warning about KillMode=none (bsc#1193086)
- decrease log level of messages about use of KillMode=none (jsc#PED-944)
[fbui: fixes bsc#1193086]
[fbui: fixes jsc#PED-944]
---
src/core/load-fragment.c | 7 +++----
src/core/unit.c | 2 +-
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c
index 8235354e89..55a1eb8dd2 100644
--- a/src/core/load-fragment.c
+++ b/src/core/load-fragment.c
@@ -666,11 +666,10 @@ int config_parse_kill_mode(
}
if (m == KILL_NONE)
- log_syntax(unit, LOG_WARNING, filename, line, 0,
+ log_syntax(unit, LOG_DEBUG, filename, line, 0,
"Unit configured to use KillMode=none. "
- "This is unsafe, as it disables systemd's process lifecycle management for the service. "
- "Please update your service to use a safer KillMode=, such as 'mixed' or 'control-group'. "
- "Support for KillMode=none is deprecated and will eventually be removed.");
+ "Support for KillMode=none is deprecated and will be eventually removed in future SLE versions. "
+ "Please see SUSE TID https://www.suse.com/support/kb/doc/?id=000020394 for more details.");
*k = m;
return 0;
diff --git a/src/core/unit.c b/src/core/unit.c
index c01bb8404a..b666663255 100644
--- a/src/core/unit.c
+++ b/src/core/unit.c
@@ -5963,7 +5963,7 @@ int unit_log_leftover_process_start(pid_t pid, int sig, void *userdata) {
/* 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));
--
2.35.3