chiark / gitweb /
dbus: to make sure that systemd stays controllable during early bootup, register...
[elogind.git] / src / unit.c
index 327444bba4d087f7b76b154506b498061111a4c5..c12c2a7deb3fa02b7f297e8d91137ce655401287 100644 (file)
@@ -1030,8 +1030,7 @@ void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns) {
                         /* The bus just might have become available,
                          * hence try to connect to it, if we aren't
                          * yet connected. */
-                        bus_init_system(u->meta.manager);
-                        bus_init_api(u->meta.manager);
+                        bus_init(u->meta.manager);
                 }
 
                 if (unit_has_name(u, SPECIAL_SYSLOG_SERVICE))