diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-07-28 13:00:01 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-07-29 15:54:53 +0200 |
commit | e7b9f4d9fa50e33b5755f5fc4b9717fbfc20c78d (patch) | |
tree | e7327530325530b1d46be12744c7eab89e56f88a /src/core/unit.c | |
parent | pid1,systemctl: allow symbolic exit code names (diff) | |
download | systemd-e7b9f4d9fa50e33b5755f5fc4b9717fbfc20c78d.tar.xz systemd-e7b9f4d9fa50e33b5755f5fc4b9717fbfc20c78d.zip |
pid1: fix message about triggers missing services
systemd[1]: systemd-tmpfiles-clean.timer: Refusing to start, unit systemd-tmpfiles-cle
an.timer to trigger not loaded.
Diffstat (limited to 'src/core/unit.c')
-rw-r--r-- | src/core/unit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/unit.c b/src/core/unit.c index fa89bd4a4d..8fe02462be 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -5764,9 +5764,11 @@ int unit_test_trigger_loaded(Unit *u) { trigger = UNIT_TRIGGER(u); if (!trigger) - return log_unit_error_errno(u, SYNTHETIC_ERRNO(ENOENT), "Refusing to start, unit to trigger not loaded."); + return log_unit_error_errno(u, SYNTHETIC_ERRNO(ENOENT), + "Refusing to start, no unit to trigger."); if (trigger->load_state != UNIT_LOADED) - return log_unit_error_errno(u, SYNTHETIC_ERRNO(ENOENT), "Refusing to start, unit %s to trigger not loaded.", u->id); + return log_unit_error_errno(u, SYNTHETIC_ERRNO(ENOENT), + "Refusing to start, unit %s to trigger not loaded.", trigger->id); return 0; } |