chiark / gitweb /
networkd: move the connection to the bus out of manager_new (again)
[elogind.git] / src / network / networkd.c
index 571f5238987e479cabec1403ab9b1f27a728cae1..7319276c536890bc16a523063d1aff51f08d04b9 100644 (file)
@@ -86,6 +86,12 @@ int main(int argc, char *argv[]) {
                 goto out;
         }
 
+        r = manager_connect_bus(m);
+        if (r < 0) {
+                log_error_errno(r, "Could not connect to bus: %m");
+                goto out;
+        }
+
         r = manager_load_config(m);
         if (r < 0) {
                 log_error_errno(r, "Could not load configuration files: %m");