LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   NetworkManager-wait-online.service (https://www.linuxquestions.org/questions/linux-newbie-8/networkmanager-wait-online-service-4175594791/)

eco_bach 12-04-2016 05:33 PM

NetworkManager-wait-online.service
 
Hi
I see
Code:

7.872s NetworkManager-wait-online.service
when I run a
Code:

systemd-analyze blame
Is this normal?
Seems like it is adding a LOT of time to my boot.

Any way to optimize?

Centos 7 + MATE install

jpollard 12-05-2016 07:51 AM

Nope.

the problem is that systemd assumes the network is ready for use as soon as it starts NetworkManager.

When this is the case, nearly all network dependent actions fail - from network based filesystems, name lookups, time synchronization, databases, network user identifications (LDAP/NIS/...).

So much fails that the systemd developers had to start modifying a ton of other applications (this one being NetworkManager).

NetworkManager-wait-online is required to delay until the network is usable. This required modification of NetworkManager to explicitly send a "ready" signal back to systemd. This normally works (DHCP clients got modified too). And even the database servers got modified for the same reason.

This is one of the reasons systemd is considered a poor design, and imposes a LOT of things on services.


All times are GMT -5. The time now is 05:17 PM.