Skip to content

Commit

Permalink
core: decrease log level of messages about use of KillMode=none
Browse files Browse the repository at this point in the history
RHEL-only: bugfix

Related: RHEL-40924
  • Loading branch information
msekletar authored and jamacku committed Jun 27, 2024
1 parent fbd46f7 commit 62eaafa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/load-fragment.c
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ 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 uses KillMode=none. "
"This is unsafe, as it disables systemd's process lifecycle management for the service. "
"Please update the service to use a safer KillMode=, such as 'mixed' or 'control-group'. "
Expand Down
2 changes: 1 addition & 1 deletion src/core/unit.c
Original file line number Diff line number Diff line change
Expand Up @@ -5867,7 +5867,7 @@ int unit_log_leftover_process_start(const PidRef *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->pid, strna(comm));
Expand Down

0 comments on commit 62eaafa

Please sign in to comment.