NetworkManager-wait-online.service: NetworkManager Reference Manual (original) (raw)

NetworkManager-wait-online.service — Wait for the network to come online

Description

The NetworkManager-wait-online service is a oneshot systemd service that delays reaching the network-online target until NetworkManager reports that the startup is completed on the D-Bus.

When the system boots, for example, remote mounts defined in /etc/fstab, require that the network is up. For this, these systemd units contain theAfter=network-online.target setting to order themselves after this target. NetworkManager-wait-online ensures that thenetwork-online target is reached only after the network is available.

Optimally, all services on the host react dynamically to network changes and systemd services do not need to be configured to start after reaching thenetwork-online target. In this case,NetworkManager-wait-online.service has no effect and does not delay the boot time. On the other hand, if you encounter a long boot time due to the delay of NetworkManager-wait-online, investigate the services that require network access and fix them.

Except for the time out value in the NetworkManager-wait-online.service unit, you cannot configure this service. Instead, settings in NetworkManager and the connection profiles affect the behavior: