From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: aws.ismail@windriver.com
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-networking][PATCH v2 3/8] quagga: add from OE-Classic, update and tidy-up
Date: Thu, 22 Nov 2012 16:05:03 +0000 [thread overview]
Message-ID: <7737777.Md20e45oyb@helios> (raw)
In-Reply-To: <50AD258C.1070700@windriver.com>
On Wednesday 21 November 2012 14:03:40 Aws Ismail wrote:
> On 11/20/2012 10:30 AM, Paul Eggleton wrote:
> > diff --git a/meta-networking/recipes-protocols/quagga/files/quagga.init
> > b/meta-networking/recipes-protocols/quagga/files/quagga.init new file
> > mode 100644
> > index 0000000..d786a5a
> > --- /dev/null
> > +++ b/meta-networking/recipes-protocols/quagga/files/quagga.init
> > @@ -0,0 +1,200 @@
> > +#!/bin/sh
> > +#
> > +# /etc/init.d/quagga -- start/stop the Quagga routing daemons
> > +#
> > +# Based on debian version by Endre Hirling <endre@mail.elte.hu> and
> > +# Christian Hammers <ch@debian.org>.
> > +#
> > +
> > +### BEGIN INIT INFO
> > +# Provides: quagga
> > +# Required-Start: $local_fs $network $remote_fs $syslog
> > +# Required-Stop: $local_fs $network $remote_fs $syslog
> > +# Default-Start: 2 3 4 5
> > +# Default-Stop: 0 1 6
> > +# Short-Description: start and stop the Quagga routing suite
> > +# Description: Quagga is a routing suite for IP routing protocols like
> > +# BGP, OSPF, RIP and others. This script contols the main
> > +# daemon "quagga" as well as the individual protocol
> > daemons.
> > +### END INIT INFO
> > +
> > +# NOTE: sbin must be before bin so we get the iproute2 ip and not the
> > +# busybox ip command. The busybox one flushes all routes instead of just
> > +# the dynamic routes
> > +PATH=/sbin:/usr/sbin:/bin:/usr/bin:/sbin
> > +D_PATH=/usr/sbin/quagga
>
> Shouldn't this be /usr/sbin rather than /usr/sbin/quagga.
> That's where the daemons are being installed, right?
Ah yes, looks like it should be. Thanks.
> > diff --git
> > a/meta-networking/recipes-protocols/quagga/files/watchquagga.default
> > b/meta-networking/recipes-protocols/quagga/files/watchquagga.default new
> > file mode 100644
> > index 0000000..f152032
> > --- /dev/null
> > +++ b/meta-networking/recipes-protocols/quagga/files/watchquagga.default
> > @@ -0,0 +1,7 @@
> > +# Watchquagga configuration
> > +#watch_daemons="zebra bgpd ospfd ospf6d ripd ripngd"
> > +watch_daemons="zebra"
> > +
> > +# To enable restarts, uncomment this line (but first be sure to edit
> > +# the WATCH_DAEMONS line to reflect the daemons you are actually using):
> > +watch_options="-Az -b_ -r/etc/init.d/quagga_restart_%s
> > -s/etc/init.d/quagga_start_%s -k/etc/init.d/quagga_stop_%s"
>
> Paul, these watch_options won't work because -A does not seem to jive
> when a single daemon (i.e. zebra) is being used.
> Recommend using something like:
>
> watch_options="-z -b_ -r/etc/init.d/quagga_restart_%s"
OK, this is something that came from the OE-Classic recipe from which this one
is derived. If -A is not going to work here I will remove it.
I'll send out a v2 with these fixes.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
next prev parent reply other threads:[~2012-11-22 16:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-20 15:30 [meta-networking][PATCH v2 0/8] Networking recipes Paul Eggleton
2012-11-20 15:30 ` [meta-networking][PATCH v2 1/8] tftp-hpa: add from OE-Classic, update and tidy up Paul Eggleton
2012-11-20 15:30 ` [meta-networking][PATCH v2 2/8] tunctl: add from OE-Classic and tweak Paul Eggleton
2012-11-20 15:30 ` [meta-networking][PATCH v2 3/8] quagga: add from OE-Classic, update and tidy-up Paul Eggleton
2012-11-21 19:03 ` Aws Ismail
2012-11-22 16:05 ` Paul Eggleton [this message]
2012-11-20 15:30 ` [meta-networking][PATCH v2 4/8] radvd: add from OE-Classic, update and tidy up Paul Eggleton
2012-11-20 15:30 ` [meta-networking][PATCH v2 5/8] vblade: " Paul Eggleton
2012-11-20 15:30 ` [meta-networking][PATCH v2 6/8] xl2tpd: " Paul Eggleton
2012-11-20 15:30 ` [meta-networking][PATCH v2 7/8] proftpd: add from meta-baryon Paul Eggleton
2012-11-20 15:30 ` [meta-networking][PATCH v2 8/8] mtr: add from OE-Classic, update and tidy up Paul Eggleton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7737777.Md20e45oyb@helios \
--to=paul.eggleton@linux.intel.com \
--cc=aws.ismail@windriver.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.