]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/systemd-networkd-wait-online.service.xml
man: fix incorrect XML in man page
[thirdparty/systemd.git] / man / systemd-networkd-wait-online.service.xml
CommitLineData
3a67e927 1<?xml version='1.0'?> <!--*-nxml-*-->
3a54a157 2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
eea10b26 3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
db9ecf05 4<!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
3a67e927 5
8d6082e4
YW
6<refentry id="systemd-networkd-wait-online.service" conditional='ENABLE_NETWORKD'
7 xmlns:xi="http://www.w3.org/2001/XInclude">
3a67e927 8
798d3a52 9 <refentryinfo>
77e3a240 10 <title>systemd-networkd-wait-online.service</title>
798d3a52 11 <productname>systemd</productname>
798d3a52
ZJS
12 </refentryinfo>
13
14 <refmeta>
15 <refentrytitle>systemd-networkd-wait-online.service</refentrytitle>
16 <manvolnum>8</manvolnum>
17 </refmeta>
18
19 <refnamediv>
20 <refname>systemd-networkd-wait-online.service</refname>
674df18a 21 <refname>systemd-networkd-wait-online@.service</refname>
798d3a52
ZJS
22 <refname>systemd-networkd-wait-online</refname>
23 <refpurpose>Wait for network to come online</refpurpose>
24 </refnamediv>
25
26 <refsynopsisdiv>
27 <para><filename>systemd-networkd-wait-online.service</filename></para>
674df18a 28 <para><filename>systemd-networkd-wait-online@.service</filename></para>
12b42c76 29 <para><filename>/usr/lib/systemd/systemd-networkd-wait-online</filename></para>
798d3a52
ZJS
30 </refsynopsisdiv>
31
32 <refsect1>
33 <title>Description</title>
34
35 <para><command>systemd-networkd-wait-online</command> is a
7cfcb252 36 oneshot system service (see <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>), that waits for the network to be
798d3a52
ZJS
37 configured. By default, it will wait for all links it is aware of
38 and which are managed by
39 <citerefentry><refentrytitle>systemd-networkd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
2f9859ba
YW
40 to be fully configured or failed, and for at least one link to be online. Here, online means that
41 the link's operational state is equal or higher than <literal>degraded</literal>. The threshold
42 can be configured by <option>--operational-state=</option> option.</para>
674df18a
YW
43
44 <para>The service <filename>systemd-networkd-wait-online.service</filename> invokes
45 <command>systemd-networkd-wait-online</command> without any options. Thus, it waits for all managed
46 interfaces to be configured or failed, and for at least one to be online.</para>
47
48 <para>The service <filename>systemd-networkd-wait-online@.service</filename> takes an interface
49 name, and invokes <command>systemd-networkd-wait-online</command> with <option>-i</option> and the
50 specified interface name. Thus, wait for the specified interface to be configured and online. For
51 example, <filename>systemd-networkd-wait-online@eth0.service</filename> waits for
52 <filename>eth0</filename> to be configured by <command>systemd-networkd</command> and online.
53 </para>
798d3a52
ZJS
54 </refsect1>
55
56 <refsect1>
57 <title>Options</title>
58
59 <para>The following options are understood:</para>
60
61 <variablelist>
62 <varlistentry>
75cd4a5d 63 <term><option>-i</option> <replaceable>INTERFACE</replaceable><optional>:<replaceable>MIN_OPERSTATE</replaceable><optional>:<replaceable>MAX_OPERSTATE</replaceable></optional></optional></term>
9bfabe14 64 <term><option>--interface=<replaceable>INTERFACE</replaceable><optional>:<replaceable>MIN_OPERSTATE</replaceable><optional>:<replaceable>MAX_OPERSTATE</replaceable></optional></optional></option></term>
798d3a52 65
2f9859ba
YW
66 <listitem><para>Network interface to wait for before deciding if the system is online. This
67 is useful when a system has several interfaces which will be configured, but a particular
68 one is necessary to access some network resources. When used, all other interfaces are ignored.
69 This option may be used more than once to wait for multiple network interfaces. When this
70 option is specified multiple times, then <command>systemd-networkd-wait-online</command> waits
75cd4a5d
DDM
71 for all specified interfaces to be online. Optionally, required minimum and maximum operational
72 states can be specified after a colon <literal>:</literal>. Please see
8d6082e4
YW
73 <citerefentry><refentrytitle>networkctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
74 for possible operational states. If the operational state is not specified here, then
75 the value from <varname>RequiredForOnline=</varname> in the corresponding
76 <filename>.network</filename> file is used if present, and <literal>degraded</literal> otherwise.
ec07c3c8
AK
77 </para>
78
aefdc112 79 <xi:include href="version-info.xml" xpointer="v213"/></listitem>
798d3a52 80 </varlistentry>
8d6082e4 81
798d3a52 82 <varlistentry>
9bfabe14 83 <term><option>--ignore=<replaceable>INTERFACE</replaceable></option></term>
8d6082e4 84
798d3a52 85 <listitem><para>Network interfaces to be ignored when deciding
b938cb90 86 if the system is online. By default, only the loopback
798d3a52 87 interface is ignored. This option may be used more than once
ec07c3c8
AK
88 to ignore multiple network interfaces. </para>
89
aefdc112 90 <xi:include href="version-info.xml" xpointer="v219"/></listitem>
798d3a52 91 </varlistentry>
8d6082e4
YW
92
93 <varlistentry>
75cd4a5d 94 <term><option>-o</option> <replaceable>MIN_OPERSTATE</replaceable><optional>:<replaceable>MAX_OPERSTATE</replaceable></optional></term>
9bfabe14 95 <term><option>--operational-state=<replaceable>MIN_OPERSTATE</replaceable><optional>:<replaceable>MAX_OPERSTATE</replaceable></optional></option></term>
8d6082e4 96
75cd4a5d
DDM
97 <listitem><para>Takes a minimum operational state and an optional maximum operational state.
98 Please see <citerefentry><refentrytitle>networkctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
8d6082e4
YW
99 for possible operational states. If set, the specified value overrides
100 <varname>RequiredForOnline=</varname> settings in <filename>.network</filename> files.
2f9859ba 101 But this does not override operational states specified in <option>--interface=</option> option.
ec07c3c8
AK
102 </para>
103
aefdc112 104 <xi:include href="version-info.xml" xpointer="v242"/></listitem>
2f9859ba
YW
105 </varlistentry>
106
6dc4531d
L
107 <varlistentry>
108 <term><option>-4</option></term>
109 <term><option>--ipv4</option></term>
110
111 <listitem><para>Waiting for an IPv4 address of each network interface to be configured. If this
112 option is specified with <option>--any</option>, then
113 <command>systemd-networkd-wait-online</command> exits with success when at least one interface
372e8592
YW
114 becomes online and has an IPv4 address. If the required minimum operational state is
115 below <literal>routable</literal>, then each link (or at least one link with
116 <option>--any</option>) must have an IPv4 link-local or routable address. If the required
117 minimum operational state is <literal>routable</literal>, then each link must have an IPv4
118 routable address.</para>
119 <para>If neither <option>--ipv4</option> nor
6dc4531d
L
120 <option>--ipv6</option> is specified, then the value from
121 <varname>RequiredFamilyForOnline=</varname> in the corresponding <filename>.network</filename>
ec07c3c8
AK
122 file is used if present.</para>
123
124 <xi:include href="version-info.xml" xpointer="v249"/></listitem>
6dc4531d
L
125 </varlistentry>
126
127 <varlistentry>
128 <term><option>-6</option></term>
129 <term><option>--ipv6</option></term>
130
131 <listitem><para>Waiting for an IPv6 address of each network interface to be configured. If this
132 option is specified with <option>--any</option>, then
133 <command>systemd-networkd-wait-online</command> exits with success when at least one interface
372e8592
YW
134 becomes online and has an IPv6 address. If the required minimum operational state is
135 below <literal>routable</literal>, then each link (or at least one link with
136 <option>--any</option>) must have an IPv6 link-local or routable address. If the required
137 minimum operational state is <literal>routable</literal>, then each link must have an IPv6
138 routable address.</para>
139 <para>If neither <option>--ipv4</option> nor
6dc4531d
L
140 <option>--ipv6</option> is specified, then the value from
141 <varname>RequiredFamilyForOnline=</varname> in the corresponding <filename>.network</filename>
ec07c3c8
AK
142 file is used if present.</para>
143
144 <xi:include href="version-info.xml" xpointer="v249"/></listitem>
6dc4531d
L
145 </varlistentry>
146
2f9859ba
YW
147 <varlistentry>
148 <term><option>--any</option></term>
149
150 <listitem><para>Even if several interfaces are in configuring state,
151 <command>systemd-networkd-wait-online</command> exits with success when at least one interface
152 becomes online. When this option is specified with <option>--interface=</option>, then
153 <command>systemd-networkd-wait-online</command> waits for one of the specified interfaces to be
154 online. This option is useful when some interfaces may not have carrier on boot.
ec07c3c8
AK
155 </para>
156
157 <xi:include href="version-info.xml" xpointer="v242"/></listitem>
8d6082e4
YW
158 </varlistentry>
159
798d3a52 160 <varlistentry>
9bfabe14 161 <term><option>--timeout=<replaceable>SECS</replaceable></option></term>
8d6082e4 162
798d3a52
ZJS
163 <listitem><para>Fail the service if the network is not online
164 by the time the timeout elapses. A timeout of 0 disables the
ec07c3c8
AK
165 timeout. Defaults to 120 seconds. </para>
166
aefdc112 167 <xi:include href="version-info.xml" xpointer="v219"/></listitem>
798d3a52 168 </varlistentry>
8d6082e4
YW
169
170 <varlistentry>
171 <term><option>-q</option></term>
172 <term><option>--quiet</option></term>
173
ec07c3c8
AK
174 <listitem><para>Suppress log messages.</para>
175
176 <xi:include href="version-info.xml" xpointer="v242"/></listitem>
8d6082e4
YW
177 </varlistentry>
178
179 <xi:include href="standard-options.xml" xpointer="help" />
180 <xi:include href="standard-options.xml" xpointer="version" />
798d3a52
ZJS
181 </variablelist>
182 </refsect1>
183
184 <refsect1>
185 <title>See Also</title>
13a69c12
DT
186 <para><simplelist type="inline">
187 <member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>
188 <member><citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry></member>
189 <member><citerefentry><refentrytitle>systemd-networkd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
190 <member><citerefentry><refentrytitle>networkctl</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>
191 </simplelist></para>
798d3a52 192 </refsect1>
3a67e927
TG
193
194</refentry>