diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-02-29 16:45:54 +0100 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-07-04 20:36:04 +0200 |
commit | 701bd9d08ac1d16f74e2b453ca0826e85b1c8491 (patch) | |
tree | 8ff8213f756689efbe5790191629a1a381df6364 /src/systemctl | |
parent | man/systemctl: --no-reload is honored by mask/unmask/preset too (diff) | |
download | systemd-701bd9d08ac1d16f74e2b453ca0826e85b1c8491.tar.xz systemd-701bd9d08ac1d16f74e2b453ca0826e85b1c8491.zip |
systemctl: skip triggering unit warning if unit vanished
Diffstat (limited to 'src/systemctl')
-rw-r--r-- | src/systemctl/systemctl-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemctl/systemctl-util.c b/src/systemctl/systemctl-util.c index a73fc3afd0..1b69b1905c 100644 --- a/src/systemctl/systemctl-util.c +++ b/src/systemctl/systemctl-util.c @@ -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; } |