diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-02-24 03:20:24 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-02-24 03:38:58 +0100 |
commit | b272b74dfd2284838db737f62a77fb5ece227bea (patch) | |
tree | 2b44a282cb436edd9a0bdb3be4f77175a69d422a /src | |
parent | 9e281251e99bbbbcb0366575b5195c36fc9483d7 (diff) |
core: expose root control group on the bus
We expose the control group of the units on the bus, so let's also
expose the root control group.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/dbus-manager.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/dbus-manager.c b/src/core/dbus-manager.c index 75004cb7c4..86816f69ca 100644 --- a/src/core/dbus-manager.c +++ b/src/core/dbus-manager.c @@ -1577,6 +1577,7 @@ const sd_bus_vtable bus_manager_vtable[] = { SD_BUS_PROPERTY("DefaultStandardError", "s", bus_property_get_exec_output, offsetof(Manager, default_std_output), SD_BUS_VTABLE_PROPERTY_CONST), SD_BUS_WRITABLE_PROPERTY("RuntimeWatchdogUSec", "t", bus_property_get_usec, property_set_runtime_watchdog, offsetof(Manager, runtime_watchdog), SD_BUS_VTABLE_PROPERTY_CONST), SD_BUS_WRITABLE_PROPERTY("ShutdownWatchdogUSec", "t", bus_property_get_usec, bus_property_set_usec, offsetof(Manager, shutdown_watchdog), SD_BUS_VTABLE_PROPERTY_CONST), + SD_BUS_PROPERTY("ControlGroup", "s", NULL, offsetof(Manager, cgroup_root), 0), SD_BUS_METHOD("GetUnit", "s", "o", method_get_unit, SD_BUS_VTABLE_UNPRIVILEGED), SD_BUS_METHOD("GetUnitByPID", "u", "o", method_get_unit_by_pid, SD_BUS_VTABLE_UNPRIVILEGED), |