diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-05-14 03:05:38 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-05-14 03:05:38 +0200 |
commit | 173e382182d7f1ad2b132b6e923ef731d6affdf7 (patch) | |
tree | e58abf9c4abdaa046ff4591f0212423181d14b4a /dbus-unit.h | |
parent | 30de7d8520d1dfaa8c46098f972f57961fc91923 (diff) |
unit: record inactive enter/exit timestamps to facilitate syslog lookups
Diffstat (limited to 'dbus-unit.h')
-rw-r--r-- | dbus-unit.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dbus-unit.h b/dbus-unit.h index 471f64cbe8..db1716ea35 100644 --- a/dbus-unit.h +++ b/dbus-unit.h @@ -52,8 +52,10 @@ " <property name=\"ActiveState\" type=\"s\" access=\"read\"/>" \ " <property name=\"SubState\" type=\"s\" access=\"read\"/>" \ " <property name=\"FragmentPath\" type=\"s\" access=\"read\"/>" \ + " <property name=\"InactiveExitTimestamp\" type=\"t\" access=\"read\"/>" \ " <property name=\"ActiveEnterTimestamp\" type=\"t\" access=\"read\"/>" \ " <property name=\"ActiveExitTimestamp\" type=\"t\" access=\"read\"/>" \ + " <property name=\"InactiveEnterTimestamp\" type=\"t\" access=\"read\"/>" \ " <property name=\"CanReload\" type=\"b\" access=\"read\"/>" \ " <property name=\"CanStart\" type=\"b\" access=\"read\"/>" \ " <property name=\"Job\" type=\"(uo)\" access=\"read\"/>" \ @@ -71,8 +73,10 @@ { "org.freedesktop.systemd1.Unit", "ActiveState", bus_unit_append_active_state, "s", u }, \ { "org.freedesktop.systemd1.Unit", "SubState", bus_unit_append_sub_state, "s", u }, \ { "org.freedesktop.systemd1.Unit", "FragmentPath", bus_property_append_string, "s", u->meta.fragment_path }, \ + { "org.freedesktop.systemd1.Unit", "InactiveExitTimestamp",bus_property_append_uint64, "t", &u->meta.inactive_exit_timestamp}, \ { "org.freedesktop.systemd1.Unit", "ActiveEnterTimestamp", bus_property_append_uint64, "t", &u->meta.active_enter_timestamp }, \ { "org.freedesktop.systemd1.Unit", "ActiveExitTimestamp", bus_property_append_uint64, "t", &u->meta.active_exit_timestamp }, \ + { "org.freedesktop.systemd1.Unit", "InActiveEnterTimestamp",bus_property_append_uint64, "t", &u->meta.inactive_enter_timestamp}, \ { "org.freedesktop.systemd1.Unit", "CanStart", bus_unit_append_can_start, "b", u }, \ { "org.freedesktop.systemd1.Unit", "CanReload", bus_unit_append_can_reload, "b", u }, \ { "org.freedesktop.systemd1.Unit", "Job", bus_unit_append_job, "(uo)", u }, \ |