core-extra/daemon/core/services
Gabriel Somlo 6609d2c394 daemon: streamline Quagga startup
Currently, all Quagga daemons are started concurrently by their
respective CORE services, using "quaggaboot.sh" generated by the
'zebra' service. However, all routing services depend on 'zebra'
already running, and 'vtysh' depends on ALL other Quagga services
before it can push configuration from the common "Quagga.conf" to
all running daemons (see "waitforvtyfiles()" in "quaggaboot.sh").

The spinwait+timeout based implementation of "waitforvtyfiles()"
may, depending on load, give up too early and fail to configure
all Quagga daemons.

This patch streamlines the way Quagga daemons are started, by
launching them all from the 'zebra' service. The correct sequence
is to first launch the 'zebra' daemon itself, then proceed with
all routing daemons, and finish with a call to "vtysh -b" which
configures all running daemons.

The list of all applicable daemons to launch is obtained using
'grep' from Quagga.conf, in the same way "waitforvtyfiles()" used
to discover which *.vty files to look for in /var/run/quagga/.

The startup command for all services other than 'zebra' becomes
empty, and "quaggaboot.sh" issues a warning on attempts to have
it launch any other daemon.

Signed-off-by: Gabriel Somlo <glsomlo@cert.org>
2017-01-12 16:40:45 -05:00
..
__init__.py daemon: Add a startup service. 2015-09-11 18:12:57 -04:00
bird.py initial import (Boeing r1752, NRL r878) 2013-08-29 14:21:13 +00:00
dockersvc.py added docker service file from r603 2014-10-31 18:47:57 +00:00
nrl.py added daemon/core/emane/tdma.py module to support EMANE 1.0.1 TDMA model 2016-09-05 17:06:31 -04:00
quagga.py daemon: streamline Quagga startup 2017-01-12 16:40:45 -05:00
security.py initial import (Boeing r1752, NRL r878) 2013-08-29 14:21:13 +00:00
startup.py daemon: Add a startup service. 2015-09-11 18:12:57 -04:00
ucarp.py Adjust file mode bits. 2015-01-21 21:38:02 +00:00
utility.py services: Set 'default' sysctl interface settings in addition to 'all'. 2015-11-12 18:22:41 -05:00
xorp.py initial import (Boeing r1752, NRL r878) 2013-08-29 14:21:13 +00:00