X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Funit.c;h=50f3b8fabd5f76266e0c50d66618763c197b17d6;hp=348d139586950637438d9ff58c5eb1a3b1af900d;hb=9d25f5ed7b80df732cf7842985aa9b243bcd2335;hpb=faf919f1ebebdfc13f769bb6585e64e7ad4b301b diff --git a/src/unit.c b/src/unit.c index 348d13958..50f3b8fab 100644 --- a/src/unit.c +++ b/src/unit.c @@ -625,6 +625,9 @@ void unit_dump(Unit *u, FILE *f, const char *prefix) { SET_FOREACH(t, u->meta.names, i) fprintf(f, "%s\tName: %s\n", prefix, t); + if (u->meta.following) + fprintf(f, "%s\tFollowing: %s\n", prefix, u->meta.following->meta.id); + if (u->meta.fragment_path) fprintf(f, "%s\tFragment Path: %s\n", prefix, u->meta.fragment_path); @@ -2071,6 +2074,13 @@ bool unit_need_daemon_reload(Unit *u) { timespec_load(&st.st_mtim) != u->meta.fragment_mtime; } +void unit_reset_maintenance(Unit *u) { + assert(u); + + if (UNIT_VTABLE(u)->reset_maintenance) + UNIT_VTABLE(u)->reset_maintenance(u); +} + static const char* const unit_type_table[_UNIT_TYPE_MAX] = { [UNIT_SERVICE] = "service", [UNIT_TIMER] = "timer",