Skip to contentSkip to conversation

openssh: openssh's init fails to restart if sshd is not running

PATCH Applied Amy Fong 2 participants 2 messages Jul 27, 2012 – Aug 17, 2012

lore
Share & tools
lore

Amy Fong

author
#0 lore raw

PATCH 1/1 openssh: openssh's init fails to restart if sshd is not running

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.

---
 init |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-connectivity/openssh/openssh-5.9p1/init +1 -1
index 055dd22..6beec84 100644
@@ -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
Applied
#1 lore raw
Quoted 25 lines · Amy Fong

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.

---
  init |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-connectivity/openssh/openssh-5.9p1/init +1 -1
index 055dd22..6beec84 100644
@@ -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
Quoted 5 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Merged into OE-Core

Quoted 1 line