[OE-core] [PATCH] openssh: openssh's init fails to restart if sshd is not running
Amy Fong
amy.fong at windriver.com
Fri Jul 27 15:06:55 UTC 2012
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 at 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
More information about the Openembedded-core
mailing list