X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Ftimer.c;h=e6f207fbb6e6b8daa507a59a08a064d24f60608b;hp=6f1f02ddbc65a62312c19f34771db72d9a985ee0;hb=980fc73d1fcda8c2a494a18dbd3262fdb97f5fbe;hpb=2a77d31df976c3934e3b38a9e61c000ec9a8acc2 diff --git a/src/timer.c b/src/timer.c index 6f1f02ddb..e6f207fbb 100644 --- a/src/timer.c +++ b/src/timer.c @@ -152,7 +152,7 @@ static void timer_set_state(Timer *t, TimerState state) { timer_state_to_string(old_state), timer_state_to_string(state)); - unit_notify(UNIT(t), state_translation_table[old_state], state_translation_table[state]); + unit_notify(UNIT(t), state_translation_table[old_state], state_translation_table[state], true); } static void timer_enter_waiting(Timer *t, bool initial); @@ -478,6 +478,10 @@ DEFINE_STRING_TABLE_LOOKUP(timer_base, TimerBase); const UnitVTable timer_vtable = { .suffix = ".timer", + .sections = + "Unit\0" + "Timer\0" + "Install\0", .init = timer_init, .done = timer_done,