diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-04-21 10:34:05 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-04-21 17:08:16 +0200 |
commit | ac9f55ed407f2994e22422f39456a2f68027c39a (patch) | |
tree | f3f0230d0c7af639e4855d6aeed9eb88068d2d7f /src/login/logind.c | |
parent | resolved: replace private log level control API with generic one (diff) | |
download | systemd-ac9f55ed407f2994e22422f39456a2f68027c39a.tar.xz systemd-ac9f55ed407f2994e22422f39456a2f68027c39a.zip |
tree-wide: implement new log control API dbus interface in all our daemons
Diffstat (limited to 'src/login/logind.c')
-rw-r--r-- | src/login/logind.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/login/logind.c b/src/login/logind.c index 8f3708d2a4..75958189ac 100644 --- a/src/login/logind.c +++ b/src/login/logind.c @@ -9,6 +9,7 @@ #include "alloc-util.h" #include "bus-error.h" +#include "bus-log-control-api.h" #include "bus-polkit.h" #include "cgroup-util.h" #include "def.h" @@ -706,6 +707,10 @@ static int manager_connect_bus(Manager *m) { if (r < 0) return log_error_errno(r, "Failed to enable subscription: %m"); + r = bus_log_control_api_register(m->bus); + if (r < 0) + return r; + r = sd_bus_request_name_async(m->bus, NULL, "org.freedesktop.login1", 0, NULL, NULL); if (r < 0) return log_error_errno(r, "Failed to request name: %m"); |