]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolve-host: enable auto start of resolved 972/head
authorLennart Poettering <lennart@poettering.net>
Sun, 16 Aug 2015 18:29:21 +0000 (20:29 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 16 Aug 2015 18:29:23 +0000 (20:29 +0200)
There's no reason to explicitly turn off bus activation for resolved
here. The reason this was done before was that the code was copied from
nss-resolve, which has a fallback to glibc's nss-dns if resolved is not
reachable. However, such a logic makes no sense for resolve-host since
such a fallback doesn't make sense here, which means we can actually
turn on activation. Let's do it hence.

src/resolve-host/resolve-host.c

index 0edba415b60b39a9ab997fe04e3bc0e1fe280354..4d557bdf02c7adf80669abb2bf764ce80d0aee15 100644 (file)
@@ -336,10 +336,6 @@ static int resolve_record(sd_bus *bus, const char *name) {
         if (r < 0)
                 return bus_log_create_error(r);
 
-        r = sd_bus_message_set_auto_start(req, false);
-        if (r < 0)
-                return bus_log_create_error(r);
-
         assert((uint16_t) arg_type == arg_type);
         r = sd_bus_message_append(req, "isqqt", arg_ifindex, name, arg_class, arg_type, arg_flags);
         if (r < 0)