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/timesync/timesyncd-bus.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 '')
-rw-r--r-- | src/timesync/timesyncd-bus.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/timesync/timesyncd-bus.c b/src/timesync/timesyncd-bus.c index 5a5896f0b7..006800709d 100644 --- a/src/timesync/timesyncd-bus.c +++ b/src/timesync/timesyncd-bus.c @@ -4,6 +4,7 @@ #include "alloc-util.h" #include "bus-internal.h" +#include "bus-log-control-api.h" #include "bus-protocol.h" #include "bus-util.h" #include "in-addr-util.h" @@ -189,6 +190,10 @@ int manager_connect_bus(Manager *m) { if (r < 0) return log_error_errno(r, "Failed to add manager object vtable: %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.timesync1", 0, NULL, NULL); if (r < 0) return log_error_errno(r, "Failed to request name: %m"); |