Re: [systemd-devel] [systemd-netword]

2014-06-09 Thread Tom Gundersen
On 7 Jun 2014 21:57, Unknown contact+systemd...@volcanis.me wrote:

 Hello. It is said in the man systemd-netword-wait-online.service:

 systemd-networkd-wait-online is a one-shot system service that waits
 for the network to be configured. By default, it will wait for all
 links it is aware of and which are managed by
 systemd-networkd.service(8) to be fully configured or failed, and for
 at least one link to gain a carrier.

 What exactly mean configured or failed, in this context ?
 If i have two interface managed by systemd-networkd, one which is up
 and fully configured and one another that is not (like, an ethernet
 interface with no cable plugged in), does that mean this other one is
 failed ? In which state is he ?

It would be in the 'configuring' state. I.e. it is waiting for the cable to
be plugged, so it is not yet ready.

 I think (maybe wrongly) this should be precised somewhere, because I
 searched for fail in the associated man pages, and found nothing.

Indeed, this should be documented.

Cheers,

Tom
 ___
 systemd-devel mailing list
 systemd-devel@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/systemd-devel
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] [systemd-netword]

2014-06-07 Thread Unknown
Hello. It is said in the man systemd-netword-wait-online.service:

systemd-networkd-wait-online is a one-shot system service that waits
for the network to be configured. By default, it will wait for all
links it is aware of and which are managed by
systemd-networkd.service(8) to be fully configured or failed, and for
at least one link to gain a carrier.

What exactly mean configured or failed, in this context ?
If i have two interface managed by systemd-networkd, one which is up
and fully configured and one another that is not (like, an ethernet
interface with no cable plugged in), does that mean this other one is
failed ? In which state is he ?

I think (maybe wrongly) this should be precised somewhere, because I
searched for fail in the associated man pages, and found nothing.

Thank you.
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] [systemd-netword]

2014-06-07 Thread Kirill Elagin
`failed` is a state of a unit and as such it is documented in `systemd` man
page.
I'm not sure if `systemd` man page fits into your definition of
“associated”.


   Units may be active (meaning started,
   bound, plugged in, ..., depending on the unit type, see below), or
   inactive (meaning stopped, unbound, unplugged, ...), as well as in
   the process of being activated or deactivated, i.e. between the two
   states (these states are called activating, deactivating). A
   special failed state is available as well, which is very similar to
   inactive and is entered when the service failed in some way
(process
   returned error code on exit, or crashed, or an operation timed out).
If
   this state is entered, the cause will be logged, for later reference.
~~~


--
Кирилл Елагин


On Sat, Jun 7, 2014 at 11:57 PM, Unknown contact+systemd...@volcanis.me
wrote:

 Hello. It is said in the man systemd-netword-wait-online.service:

 systemd-networkd-wait-online is a one-shot system service that waits
 for the network to be configured. By default, it will wait for all
 links it is aware of and which are managed by
 systemd-networkd.service(8) to be fully configured or failed, and for
 at least one link to gain a carrier.

 What exactly mean configured or failed, in this context ?
 If i have two interface managed by systemd-networkd, one which is up
 and fully configured and one another that is not (like, an ethernet
 interface with no cable plugged in), does that mean this other one is
 failed ? In which state is he ?

 I think (maybe wrongly) this should be precised somewhere, because I
 searched for fail in the associated man pages, and found nothing.

 Thank you.
 ___
 systemd-devel mailing list
 systemd-devel@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/systemd-devel

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] [systemd-netword]

2014-06-07 Thread Reventlov
Le Sun, 8 Jun 2014 00:21:24 +0400,
Kirill Elagin kirela...@gmail.com a écrit :

 `failed` is a state of a unit and as such it is documented in
 `systemd` man page.  

What kind of unit ?

I quote:
By default, it will wait for all links it is aware of and which are
managed by systemd-networkd.service(8)  
Are these links the one described in the systemd.link manpage ?
What happens if I don't have any .link file, and systemd-networkd
still manage my ethernet link using a .network file ?

Thank your for your answer.
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel