mirror_frr/debian
Donald Sharp 8c5fbd4858 initd: initd-mi.patch
Support Multi-Instance protocol daemons initd

OSPFd is the first of the multi-instance daemons. This patch allows the
starting, stopping, restarting and monitoring of multiple instances of
the same protocol daemon.

Multiple instances are specified in the daemons file using a new variable:
ospfd_instances="1,2"

Absence of this variable means ospfd will start in legacy, single instance
mode. The original "ospfd=yes" line is still required.

Daemons are started with the "-n <instance>" option. Each daemon is named
"<daemon>-<instance>", for example "ospfd-1", "ospfd-2" etc. Similarly,
pid files are ospfd-1.pid and vty files are named ospfd-1.vty.

We're also introducing a new file, /etc/default/quagga to store the
default value for the maximum instances associated with a daemon.

watchquagga and others are unmodified and everything else just works once
this code is in place.

The code has been enhanced to support restarting watchquagga with only the
updated daemons when an individual daemon is stopped or started. For example,
without this patch, stopping just bgpd would terminate watchquagga even if
ospfd and zebra are still running. Similarly, starting just bgpd when ospfd
and zebra are running wouldn't update watchquagga to include bgpd. Furthermore,
when the daemons file is modified and a daemon is no longer deemed necessary
and quagga restarted, the daemon is not killed. For example, switching
ospfd=yes to ospfd=no and restarting the quagga will leave ospfd daemon
running. This case is also fixed with this patch.

However, adding a new instance to the ospfd_instances file and starting
just that instance will start just that instance and add it to watchquagga.
Similarly, a single instance maybe stopped or restarted.

Caveat emptor: With multi-instance daemons, stopping a single instance and then
starting a different instance will cause all instances to be monitored by
watchquagga i.e. all instances will be restarted, if necessary.

Signed-off-by: Dinesh G Dutt <ddutt at cumulusnetworks.com>
2015-05-19 18:03:41 -07:00
..
my Debian Packaging Files 2015-05-19 16:26:49 -07:00
patches Debian Packaging Files 2015-05-19 16:26:49 -07:00
po Debian Packaging Files 2015-05-19 16:26:49 -07:00
source Debian Packaging Files 2015-05-19 16:26:49 -07:00
tests Debian Packaging Files 2015-05-19 16:26:49 -07:00
changelog Debian Packaging Files 2015-05-19 16:26:49 -07:00
compat Debian Packaging Files 2015-05-19 16:26:49 -07:00
control Debian Packaging Files 2015-05-19 16:26:49 -07:00
copyright Debian Packaging Files 2015-05-19 16:26:49 -07:00
quagga-doc.docs conditional-quagga-pdf.patch 2015-05-19 16:31:06 -07:00
quagga-doc.info Debian Packaging Files 2015-05-19 16:26:49 -07:00
quagga-doc.install Debian Packaging Files 2015-05-19 16:26:49 -07:00
quagga-doc.lintian-overrides Debian Packaging Files 2015-05-19 16:26:49 -07:00
quagga.config Debian Packaging Files 2015-05-19 16:26:49 -07:00
quagga.default initd: initd-mi.patch 2015-05-19 18:03:41 -07:00
quagga.dirs Debian Packaging Files 2015-05-19 16:26:49 -07:00
quagga.docs Debian Packaging Files 2015-05-19 16:26:49 -07:00
quagga.init.d initd: initd-mi.patch 2015-05-19 18:03:41 -07:00
quagga.install Debian Packaging Files 2015-05-19 16:26:49 -07:00
quagga.lintian-overrides Debian Packaging Files 2015-05-19 16:26:49 -07:00
quagga.logrotate logrotate-add-size.patch 2015-05-19 16:32:21 -07:00
quagga.manpages Debian Packaging Files 2015-05-19 16:26:49 -07:00
quagga.pam Debian Packaging Files 2015-05-19 16:26:49 -07:00
quagga.postinst Debian Packaging Files 2015-05-19 16:26:49 -07:00
quagga.postrm Debian Packaging Files 2015-05-19 16:26:49 -07:00
quagga.preinst Remove incorrect SNMP error when installing debian package 2015-05-19 17:40:32 -07:00
quagga.prerm Debian Packaging Files 2015-05-19 16:26:49 -07:00
quagga.templates Debian Packaging Files 2015-05-19 16:26:49 -07:00
README.Debian Debian Packaging Files 2015-05-19 16:26:49 -07:00
README.Maintainer Debian Packaging Files 2015-05-19 16:26:49 -07:00
rules iquagga-faster-compile.patch 2015-05-19 17:40:43 -07:00
watch Debian Packaging Files 2015-05-19 16:26:49 -07:00

#
# To check if the patches still apply on new upstream versions:
#
for i in debian/patches/*.diff; do echo -e "#\n# $i\n#"; patch --fuzz=3 --dry-run -p1 < $i; done

#
# Filename transition from zebra to quagga
#

Files that keep their names
	/usr/bin/vtysh

Files that got an -pj suffix
	/etc/default/zebra	-> /etc/quagga/debian.conf
	/etc/init.d/zebra	-> /etc/init.d/quagga
	/etc/zebra/		-> /etc/quagga/
	/usr/share/doc/zebra/	-> /usr/share/doc/quagga/
	/var/log/zebra/		-> /var/log/quagga/
	/var/run/ 		-> /var/run/quagga/

Files that were moved
	/usr/sbin/*		-> /usr/lib/quagga/