chiark / gitweb /
dbus: don't try to connect to the system bus before it is actually up
[elogind.git] / src / unit.c
index 9dd02676e385829e2d5d82a8c38f4c6b42d1057a..a7e6714c4508a5855d8d1158ab780fa3de06e714 100644 (file)
@@ -1194,7 +1194,7 @@ void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns, bool reload_su
                         /* The bus just might have become available,
                          * hence try to connect to it, if we aren't
                          * yet connected. */
-                        bus_init(u->meta.manager);
+                        bus_init(u->meta.manager, true);
 
                 if (unit_has_name(u, SPECIAL_SYSLOG_SERVICE))
                         /* The syslog daemon just might have become