Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #185016

delay the start of a service until LACP negotiation is complete

From "John Ratliff" <jratliff@bluemarble.net>
Newsgroups linux.debian.user
Subject delay the start of a service until LACP negotiation is complete
Date 2017-08-11 01:10 +0200
Message-ID <ud4Ku-41n-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


I need two services to wait until the network is fully up before I start
them. In Jessie, I made an rc.local script that pinged google 20 times
until it got a response. After that, it started the services. This seemed
to work great. I upgraded one of the systems to stretch, and the script
stopped working; or at least, I thought it did. Turns out, it just takes
longer under stretch than it did under Jessie (not sure why). Now I need
to do 30 pings to make sure it’s okay.

I’d like a better option. I tried delaying the services until
network-online.target, but this doesn’t really seem to work.

I have a 4 port LAGG (LACP / bond-mode 4) interface named bond0. It seems
to take about 45 seconds after the links come up to negotiate with the
switch. However, as soon as the network gets link active signals on the
individual links, it seems to think the network is up and starts the
services too soon. Is there something I can do to verify the LACP
negotiation is complete before starting some of my services?

Thanks.

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

delay the start of a service until LACP negotiation is complete "John Ratliff" <jratliff@bluemarble.net> - 2017-08-11 01:10 +0200
  Re: delay the start of a service until LACP negotiation is complete Sven Hartge <sven@svenhartge.de> - 2017-08-11 11:10 +0200
    Re: delay the start of a service until LACP negotiation is complete "John Ratliff" <jratliff@bluemarble.net> - 2017-08-11 15:50 +0200
      Re: delay the start of a service until LACP negotiation is complete Sven Hartge <sven@svenhartge.de> - 2017-08-11 18:40 +0200
        Re: delay the start of a service until LACP negotiation is complete "John Ratliff" <jratliff@bluemarble.net> - 2017-08-11 19:40 +0200
          Re: delay the start of a service until LACP negotiation is complete Sven Hartge <sven@svenhartge.de> - 2017-08-11 19:50 +0200

csiph-web