diff options
author | Tom Gundersen <teg@jklm.no> | 2014-03-10 23:40:34 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-03-11 12:03:46 +0100 |
commit | f0c4cd7a2c2835a392b5b1807d8c506ab0af44de (patch) | |
tree | 0a29fc7b8c8618e6292bd78081a45950c43943d8 /src/network | |
parent | 63edaa623bee43c934a0c357e8c6498992429391 (diff) |
networkd: rework startup
Open all listenerns before loading configuration.
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/networkd.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/network/networkd.c b/src/network/networkd.c index a80740bbea..2f6a12dbcc 100644 --- a/src/network/networkd.c +++ b/src/network/networkd.c @@ -51,33 +51,33 @@ int main(int argc, char *argv[]) { goto out; } - r = manager_load_config(m); + r = manager_udev_listen(m); if (r < 0) { - log_error("Could not load configuration files: %s", strerror(-r)); + log_error("Could not connect to udev: %s", strerror(-r)); goto out; } - r = manager_udev_listen(m); + r = manager_rtnl_listen(m); if (r < 0) { - log_error("Could not connect to udev: %s", strerror(-r)); + log_error("Could not connect to rtnl: %s", strerror(-r)); goto out; } - r = manager_udev_enumerate_links(m); + r = manager_bus_listen(m); if (r < 0) { - log_error("Could not enumerate links: %s", strerror(-r)); + log_error("Could not connect to system bus: %s", strerror(-r)); goto out; } - r = manager_rtnl_listen(m); + r = manager_load_config(m); if (r < 0) { - log_error("Could not connect to rtnl: %s", strerror(-r)); + log_error("Could not load configuration files: %s", strerror(-r)); goto out; } - r = manager_bus_listen(m); + r = manager_udev_enumerate_links(m); if (r < 0) { - log_error("Could not connect to system bus: %s", strerror(-r)); + log_error("Could not enumerate links: %s", strerror(-r)); goto out; } |