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/portable/portabled.c | |
parent | 4c4520789d2bfa3fa51b38b826cac2efb5a4d252 (diff) | |
download | systemd-ac9f55ed407f2994e22422f39456a2f68027c39a.tar.gz |
tree-wide: implement new log control API dbus interface in all our daemons
Diffstat (limited to 'src/portable/portabled.c')
-rw-r--r-- | src/portable/portabled.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/portable/portabled.c b/src/portable/portabled.c index 75b76926e5..265f7a7440 100644 --- a/src/portable/portabled.c +++ b/src/portable/portabled.c @@ -7,6 +7,7 @@ #include "sd-daemon.h" #include "alloc-util.h" +#include "bus-log-control-api.h" #include "bus-polkit.h" #include "def.h" #include "main-func.h" @@ -84,6 +85,10 @@ static int manager_connect_bus(Manager *m) { if (r < 0) return log_error_errno(r, "Failed to add image enumerator: %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.portable1", 0, NULL, NULL); if (r < 0) return log_error_errno(r, "Failed to request name: %m"); |