From: Amy Fong <amy.fong@windriver.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH] openssh: openssh's init fails to restart if sshd is not running
Date: Fri, 27 Jul 2012 11:06:55 -0400 [thread overview]
Message-ID: <20120727150655.GA3419@windriver.com> (raw)
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
next reply other threads:[~2012-07-27 15:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-27 15:06 Amy Fong [this message]
2012-08-17 20:52 ` [PATCH] openssh: openssh's init fails to restart if sshd is not running Saul Wold
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=20120727150655.GA3419@windriver.com \
--to=amy.fong@windriver.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.