mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
systemctl: skip triggering unit warning if unit vanished
(cherry picked from commit 701bd9d08ac1d16f74e2b453ca0826e85b1c8491)
This commit is contained in:
parent
bb71d5dfb4
commit
67e0d09368
@ -383,8 +383,8 @@ void warn_triggering_units(sd_bus *bus, const char *unit, const char *operation,
|
||||
|
||||
r = get_active_triggering_units(bus, unit, ignore_masked, &triggered_by);
|
||||
if (r < 0) {
|
||||
log_warning_errno(r,
|
||||
"Failed to get triggering units for '%s', ignoring: %m", unit);
|
||||
if (r != -ENOENT) /* A linked unit might have disappeared after disabling */
|
||||
log_warning_errno(r, "Failed to get triggering units for '%s', ignoring: %m", unit);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user