]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/service: complain louder if new MAINPID= is refused
authorMike Yuan <me@yhndnzj.com>
Fri, 5 Apr 2024 10:28:13 +0000 (18:28 +0800)
committerMike Yuan <me@yhndnzj.com>
Fri, 5 Apr 2024 18:22:19 +0000 (02:22 +0800)
src/core/service.c

index dc0963bc763cea5331daa146a70fe297e6b21edc..7f4e1e4443a45f9258cb1fe15ff3a7e1e9571047 100644 (file)
@@ -4381,7 +4381,7 @@ static void service_notify_message(
                                         log_unit_debug(u, "New main PID "PID_FMT" does not belong to service, but we'll accept it as the request to change it came from a privileged process.", new_main_pid.pid);
                                         r = 1;
                                 } else
-                                        log_unit_debug(u, "New main PID "PID_FMT" does not belong to service, refusing.", new_main_pid.pid);
+                                        log_unit_warning(u, "New main PID "PID_FMT" does not belong to service, refusing.", new_main_pid.pid);
                         }
                         if (r > 0) {
                                 (void) service_set_main_pidref(s, TAKE_PIDREF(new_main_pid));