From: Joe MacDonald <joe@deserted.net>
To: David Turgeon <david.turgeon@gmail.com>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][PATCH] tftpd-hpa: fix premature exit
Date: Fri, 18 Oct 2013 12:34:47 -0400 [thread overview]
Message-ID: <20131018163445.GE2456@deserted.net> (raw)
In-Reply-To: <1381586640-32671-1-git-send-email-david.turgeon@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1607 bytes --]
Merged, thanks.
-J.
[[oe] [meta-oe][PATCH] tftpd-hpa: fix premature exit] On 13.10.12 (Sat 10:04) David Turgeon wrote:
> standalone daemon exits as recipe installs file as tftpd-hpa
>
> * Changed script so it can consult /etc/default, as daemon name may be
> subject to change.
> * Changed the default name to match the recipe
>
> Signed-off-by: David Turgeon <david.turgeon@gmail.com>
> ---
> .../recipes-daemons/tftp-hpa/files/init | 13 +++++++------
> 1 file changed, 7 insertions(+), 6 deletions(-)
>
> diff --git a/meta-networking/recipes-daemons/tftp-hpa/files/init b/meta-networking/recipes-daemons/tftp-hpa/files/init
> index 5ad8c52..9e18436 100644
> --- a/meta-networking/recipes-daemons/tftp-hpa/files/init
> +++ b/meta-networking/recipes-daemons/tftp-hpa/files/init
> @@ -18,20 +18,21 @@ set -e
>
> PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
> DESC="HPA's tftpd"
> -NAME=in.tftpd
> -DAEMON=/usr/sbin/$NAME
> -PIDFILE=/var/run/$NAME.pid
> +NAME=in.tftpd-hpa
> SCRIPTNAME=/etc/init.d/tftpd-hpa
>
> -# Gracefully exit if the package has been removed.
> -test -x $DAEMON || exit 0
> -
> # Read config file if it is present.
> if [ -r /etc/default/tftpd-hpa ]
> then
> . /etc/default/tftpd-hpa
> fi
>
> +DAEMON=/usr/sbin/$NAME
> +PIDFILE=/var/run/$NAME.pid
> +
> +# Gracefully exit if the package has been removed.
> +test -x $DAEMON || exit 0
> +
> if [ "$RUN_DAEMON" != "yes" ] ; then
> echo "tftpd-hpa disabled in /etc/default/tftpd-hpa"
> exit 0
--
-Joe MacDonald.
:wq
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
prev parent reply other threads:[~2013-10-18 16:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-12 14:04 [meta-oe][PATCH] tftpd-hpa: fix premature exit David Turgeon
2013-10-18 3:43 ` David Turgeon
2013-10-18 16:34 ` Joe MacDonald [this message]
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=20131018163445.GE2456@deserted.net \
--to=joe@deserted.net \
--cc=david.turgeon@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox