]> git.proxmox.com Git - mirror_frr.git/commit - watchfrr/watchfrr.c
watchquagga: Signal when we are actually up and running
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 9 Nov 2016 15:22:22 +0000 (10:22 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 9 Nov 2016 17:52:42 +0000 (12:52 -0500)
commit207e0d7a7909b75b2cb9d7bf8f8e817698bf55c9
tree0859121ad132820afe7fbd3f109953c2423cce0a
parent36602be128d4f4e49c19555a194430b9691c9a30
watchquagga: Signal when we are actually up and running

When Quagga is starting up, it is returning immediately.
This is leaving us in a state where systemd believes
Quagga is up and running, while the sytem might actually
not have restarted the code yet.

Modify the code so that when watchquagga starts up
it doesn't start communicating with systemd until
such time that it detects that all daemons are
running.

Additionally modify watchquagga to touch a
file in /var/run/quagga/ that the /usr/lib/quagga/quagga
script looks for for 10 seconds.  If it finds this
Quagga started file then we know watchquagga
has successfully communicated with all daemons.
If after 10 seconds we haven't communicated
with Quagga, continue on for the start and let the
normal start failure code work.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
tools/quagga
watchquagga/watchquagga.c