mirror of
https://github.com/systemd/systemd.git
synced 2024-11-30 22:03:41 +08:00
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.
This commit is contained in:
parent
2e2ed88062
commit
e7b9f4d9fa
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user