From: Michael Tremer Date: Wed, 1 Feb 2023 15:26:57 +0000 (+0000) Subject: networkd: Fully implement bus handler for Reload X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1dc98e400cd9c17edffa8f94f02a38ca1777cef8;p=network.git networkd: Fully implement bus handler for Reload Signed-off-by: Michael Tremer --- diff --git a/src/networkd/bus.c b/src/networkd/bus.c index 36ae7c99..56eda876 100644 --- a/src/networkd/bus.c +++ b/src/networkd/bus.c @@ -29,7 +29,13 @@ #include "logging.h" static int nw_bus_daemon_reload(sd_bus_message* m, void* data, sd_bus_error* error) { - return 1; + struct nw_daemon* daemon = (struct nw_daemon*)data; + + // Reload the daemon + nw_daemon_reload(daemon); + + // Respond with an empty message + return sd_bus_reply_method_return(m, NULL); } static int nw_bus_on_connect(sd_bus_message* m, void* data, sd_bus_error* error) {