]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/unit.c
core: store for each unit when the last low-level unit state change took place
authorLennart Poettering <lennart@poettering.net>
Mon, 1 Feb 2016 15:01:25 +0000 (16:01 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 1 Feb 2016 21:18:16 +0000 (22:18 +0100)
commita483fb59a8dd908a3e4b20d62410d022d511eaa8
treea386f49898eed84c884c435598d675af6a1aeff7
parent393003e1debf7c7f75beaacbd532b92c3e3dc729
core: store for each unit when the last low-level unit state change took place

This adds a new timestamp field to the Unit struct, storing when the last low-level state change took place, and make
sure this is restored after a daemon reload. This new field is useful to allow restarting of per-state timers exactly
where they originally started.
src/core/dbus-unit.c
src/core/unit.c
src/core/unit.h