X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fdbus-service.c;h=3486623e59947ffb45e8d7ee94825742991119fb;hp=4ba3891bf1fc4dc069282b7141da047d9541ff11;hb=fc5e60ee0c64343d1bd08c343275fc1ceff445aa;hpb=cb7f69965d9e076fa387fef8d616051c8015855d diff --git a/src/dbus-service.c b/src/dbus-service.c index 4ba3891bf..3486623e5 100644 --- a/src/dbus-service.c +++ b/src/dbus-service.c @@ -24,6 +24,7 @@ #include "dbus-unit.h" #include "dbus-execute.h" #include "dbus-service.h" +#include "dbus-common.h" #ifdef HAVE_SYSV_COMPAT #define BUS_SERVICE_SYSV_INTERFACE_FRAGMENT \ @@ -58,6 +59,7 @@ " \n" \ " \n" \ " \n" \ + " \n" \ BUS_SERVICE_SYSV_INTERFACE_FRAGMENT \ " \n" @@ -118,6 +120,7 @@ DBusHandlerResult bus_service_message_handler(Unit *u, DBusConnection *connectio { "org.freedesktop.systemd1.Service", "ControlPID", bus_property_append_pid, "u", &u->service.control_pid }, { "org.freedesktop.systemd1.Service", "BusName", bus_property_append_string, "s", u->service.bus_name }, { "org.freedesktop.systemd1.Service", "StatusText", bus_property_append_string, "s", u->service.status_text }, + { "org.freedesktop.systemd1.Service", "Sockets", bus_unit_append_dependencies, "as", u->service.configured_sockets }, #ifdef HAVE_SYSV_COMPAT { "org.freedesktop.systemd1.Service", "SysVRunLevels", bus_property_append_string, "s", u->service.sysv_runlevels }, { "org.freedesktop.systemd1.Service", "SysVStartPriority", bus_property_append_int, "i", &u->service.sysv_start_priority }, @@ -127,5 +130,5 @@ DBusHandlerResult bus_service_message_handler(Unit *u, DBusConnection *connectio { NULL, NULL, NULL, NULL, NULL } }; - return bus_default_message_handler(u->meta.manager, connection, message, INTROSPECTION, INTERFACES_LIST, properties); + return bus_default_message_handler(connection, message, INTROSPECTION, INTERFACES_LIST, properties); }