1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-25 10:04:04 +03:00

systemctl: distinguish reload and reexec

This used to log about reload, for reload and reexecution. Let's
distinguish the two cases.
This commit is contained in:
Christian Hesse 2023-11-22 14:19:12 +01:00 committed by Luca Boccassi
parent 0ca66adfcc
commit 0f1dcf9d79

View File

@ -45,11 +45,13 @@ int daemon_reload(enum action action, bool graceful) {
return 1;
if (r < 0) {
if (graceful) { /* If graceful mode is selected, debug log, but don't fail */
log_debug_errno(r, "Failed to reload daemon via the bus, ignoring: %s", bus_error_message(&error, r));
log_debug_errno(r, "%s daemon failed via the bus, ignoring: %s",
method, bus_error_message(&error, r));
return 0;
}
return log_error_errno(r, "Failed to reload daemon: %s", bus_error_message(&error, r));
return log_error_errno(r, "%s daemon failed: %s",
method, bus_error_message(&error, r));
}
return 1;