[systemd-devel] systemd-networkd mysteriously shutting down after launch

Keller, Jacob E jacob.e.keller at intel.com
Tue Feb 17 10:08:13 PST 2015


On Sat, 2015-02-14 at 18:03 +0100, Zbigniew Jędrzejewski-Szmek wrote:
> On Fri, Feb 13, 2015 at 10:49:12AM +0100, Lennart Poettering wrote:
> > On Thu, 12.02.15 22:30, Keller, Jacob E (jacob.e.keller at intel.com) wrote:
> > 
> > > On Thu, 2015-02-12 at 20:15 +0100, Tom Gundersen wrote:
> > > > On Thu, Feb 12, 2015 at 7:28 PM, Keller, Jacob E
> > > 
> > > Now I'm having an interesting issue with the current git of
> > > systemd-networkd... It works just fine on load, and I get an ip address
> > > and everything is happy. After some amount of time, systemd-networkd
> > > goes into "shutting down.." and I lose my ip address.. There is nothing
> > > obvious in the log to indicate that it was turned off.
> > > 
> > > Any suggestions? I'm capturing a clean boot with the issue with
> > > SYSTEMD_LOG_LEVEL=debug enabled for more information now.
> > 
> > This might be caused by the new exit-on-idle logic Tom added. But that
> > should leave the IP address untouched when exiting.
> > 
> > Tom, can you look at this?
> 
> This should be fixed by
> 
> commit a8ba6cd15d3a5edf1f9fbb4fd08dc428c3939072
> Author: Tom Gundersen <teg at jklm.no>
> Date:   Fri Feb 13 16:20:45 2015 +0100
> 
>     exit-on-idle: only exit if actually idle
>     
>     sd_event_wait() returning 0 usually means that it timed out, which means it must
>     have been idle. However, sd_event_wait() may return 0 in case an event was triggered
>     but it turned out there was nothing to do. Make the check for idle explicit to avoid
>     this edge-case.
> 
> Zbyszek
> 

Yep this was fixed. Thanks so much for the help!

Regards,
Jake


More information about the systemd-devel mailing list