]> code.ossystems Code Review - openembedded-core.git/commitdiff
openssh: openssh's init fails to restart if sshd is not running
authorAmy Fong <amy.fong@windriver.com>
Fri, 27 Jul 2012 15:06:55 +0000 (11:06 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 17 Aug 2012 17:04:10 +0000 (18:04 +0100)
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>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-connectivity/openssh/openssh-6.0p1/init

index 055dd22e1b238453c372f2be2be8f926f4431da5..cde52ef3f4aa9ff99df335889999d2150708c4f8 100644 (file)
@@ -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