From: Saul Wold <sgw@linux.intel.com>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] openssh: openssh's init fails to restart if sshd is not running
Date: Fri, 17 Aug 2012 13:52:32 -0700 [thread overview]
Message-ID: <502EAF10.2030207@linux.intel.com> (raw)
In-Reply-To: <20120727150655.GA3419@windriver.com>
On 07/27/2012 08:06 AM, Amy Fong wrote:
> openssh: openssh's init fails to restart if sshd is not running
>
> Because of "set -e", it's necessary to specify the -o (or --oknodo)
> so that start-stop-daemon returns an exit status of 0 if no actions
> are taken.
>
> Signed-off-by: Amy Fong <amy.fong@windriver.com>
> ---
> init | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-connectivity/openssh/openssh-5.9p1/init b/meta/recipes-connectivity/openssh/openssh-5.9p1/init
> index 055dd22..6beec84 100644
> --- a/meta/recipes-connectivity/openssh/openssh-5.9p1/init
> +++ b/meta/recipes-connectivity/openssh/openssh-5.9p1/init
> @@ -76,7 +76,7 @@ case "$1" in
> check_keys
> check_config
> echo -n "Restarting OpenBSD Secure Shell server: sshd"
> - start-stop-daemon -K -x /usr/sbin/sshd
> + start-stop-daemon -K --oknodo -x /usr/sbin/sshd
> check_for_no_start
> check_privsep_dir
> sleep 2
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
Merged into OE-Core
>
prev parent reply other threads:[~2012-08-17 21:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-27 15:06 [PATCH] openssh: openssh's init fails to restart if sshd is not running Amy Fong
2012-08-17 20:52 ` Saul Wold [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=502EAF10.2030207@linux.intel.com \
--to=sgw@linux.intel.com \
--cc=openembedded-core@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.