From 3a67e927e3be7efb8edf314a31aa4f8f5cba4f53 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Wed, 23 Apr 2014 17:42:55 +0200 Subject: networkd-wait-online: improve interoptability and enable by default To make sure we don't delay boot on systems where (some) network links are managed by someone else we don't block if something else has successfully brought up a link. We will still block until all links we are aware of that are managed by networkd have been configured, but if no such links exist, and someone else have configured a link sufficiently that it has a carrier, it may be that the link is ready so we should no longer block. Note that in all likelyhood the link is not ready (no addresses/routes configured), so whatever network managment daemon configured it should provide a similar wait-online service to block network-online.target until it is ready. The aim is to block as long as we know networking is not fully configured, but no longer. This will allow systemd-networkd-wait-online.service to be enabled on any system, even if we don't know whether networkd is the main/only network manager. Even in the case networking is fully configured by networkd, the default behavior may not be sufficient: if two links need to be configured, but the first is fully configured before the second one appears we will assume the network is up. To work around that, we allow specifying specific devices to wait for before considering the network up. This unit is enabled by default, just like systemd-networkd, but will only be pulled in if anyone pulls in network-online.target. --- man/networkd-wait-online.conf.xml | 95 ++++++++++++++++++++++++++++ man/systemd-networkd-wait-online.service.xml | 81 ++++++++++++++++++++++++ man/systemd-networkd.service.xml | 1 + 3 files changed, 177 insertions(+) create mode 100644 man/networkd-wait-online.conf.xml create mode 100644 man/systemd-networkd-wait-online.service.xml (limited to 'man') diff --git a/man/networkd-wait-online.conf.xml b/man/networkd-wait-online.conf.xml new file mode 100644 index 0000000000..821b0efedd --- /dev/null +++ b/man/networkd-wait-online.conf.xml @@ -0,0 +1,95 @@ + + + + + + + + + networkd-wait-online.conf + systemd + + + + Developer + Tom + Gundersen + teg@jklm.no + + + + + + networkd-wait-online.conf + 5 + + + + networkd-wait-online.conf + Network manager configuration file + + + + /etc/systemd/networkd-wait-online.conf + + + + Description + + This file configures various parameters of the systemd network manager's wait-online service, systemd-networkd-wait-online.service8. + + + + + Options + + All options are configured in the + [WaitOnline] section: + + + + + After= + + Takes a white-space + separated list of network interface + names. Configures which network interfaces + to wait for before deciding if the machine + is considered to be online. The default is + to wait for at least one that is managed by + systemd-networkd.service + 8, + or one other which is brought up by someone else. + + + + + + + + See Also + + systemd1, + systemd-networkd.service8, + + + + diff --git a/man/systemd-networkd-wait-online.service.xml b/man/systemd-networkd-wait-online.service.xml new file mode 100644 index 0000000000..d8f2226552 --- /dev/null +++ b/man/systemd-networkd-wait-online.service.xml @@ -0,0 +1,81 @@ + + + + + + + + + systemd-networkd.service + systemd + + + + Developer + Tom + Gundersen + teg@jklm.no + + + + + + systemd-networkd-wait-online.service + 8 + + + + systemd-networkd-wait-online.service + systemd-networkd-wait-online + Wait for network to become online + + + + systemd-networkd-wait-online.service + /usr/lib/systemd/systemd-networkd-wait-online + + + + Description + + systemd-networkd-wait-online is a + one-shot system service that waits for the network to be configured. + It will wait for all links managed by + systemd-networkd.service8, + to be fully configured. It will wait for at least one link managed by + systemd-networkd to appear, or for a link to be brought up by someone else. + + To wait for a specific set of links, see + systemd-networkd.conf5. + This may be necessary on systems with more than one active link. + + + + + See Also + + systemd1, + systemd-networkd.conf5, + systemd-networkd.service8, + + + + diff --git a/man/systemd-networkd.service.xml b/man/systemd-networkd.service.xml index bcdd9adae0..ca35a8850b 100644 --- a/man/systemd-networkd.service.xml +++ b/man/systemd-networkd.service.xml @@ -101,6 +101,7 @@ systemd.link5, systemd.network5, systemd.netdev5 + systemd-network-wait-online.service8 -- cgit v1.2.3-54-g00ecf