mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 09:56:51 +03:00
Merge pull request #6659 from yuwata/econnrefused
networkd: do not fail manager_connect_bus() if dbus is not active yet
This commit is contained in:
commit
701afcbf12
@ -136,10 +136,9 @@ int manager_connect_bus(Manager *m) {
|
||||
assert(m);
|
||||
|
||||
r = sd_bus_default_system(&m->bus);
|
||||
if (r == -ENOENT) {
|
||||
if (r < 0) {
|
||||
/* We failed to connect? Yuck, we must be in early
|
||||
* boot. Let's try in 5s again. As soon as we have
|
||||
* kdbus we can stop doing this... */
|
||||
* boot. Let's try in 5s again. */
|
||||
|
||||
log_debug_errno(r, "Failed to connect to bus, trying again in 5s: %m");
|
||||
|
||||
|
@ -1644,8 +1644,7 @@ int manager_connect_bus(Manager *m) {
|
||||
r = sd_bus_default_system(&m->bus);
|
||||
if (r < 0) {
|
||||
/* We failed to connect? Yuck, we must be in early
|
||||
* boot. Let's try in 5s again. As soon as we have
|
||||
* kdbus we can stop doing this... */
|
||||
* boot. Let's try in 5s again. */
|
||||
|
||||
log_debug_errno(r, "Failed to connect to bus, trying again in 5s: %m");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user