Patchwork openssh: fix initscript restart command

login
register
mail settings
Submitter Marc Ferland
Date June 27, 2013, 10:53 p.m.
Message ID <1372373620-14853-1-git-send-email-ferlandm@sonatest.com>
Download mbox | patch
Permalink /patch/52485/
State Accepted
Commit 40f65a76b3291ae625c072a8efebbf134b15c367
Headers show

Comments

Marc Ferland - June 27, 2013, 10:53 p.m.
start-stop-daemon should be called with '--oknodo' instead of
'-oknodo'.

Signed-off-by: Marc Ferland <ferlandm@sonatest.com>
---
 meta/recipes-connectivity/openssh/openssh-6.2p2/init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-connectivity/openssh/openssh-6.2p2/init b/meta/recipes-connectivity/openssh/openssh-6.2p2/init
index cde52ef..6beec84 100644
--- a/meta/recipes-connectivity/openssh/openssh-6.2p2/init
+++ b/meta/recipes-connectivity/openssh/openssh-6.2p2/init
@@ -76,7 +76,7 @@  case "$1" in
   	check_keys
 	check_config
         echo -n "Restarting OpenBSD Secure Shell server: sshd"
-	start-stop-daemon -K -oknodo -x /usr/sbin/sshd
+	start-stop-daemon -K --oknodo -x /usr/sbin/sshd
 	check_for_no_start
 	check_privsep_dir
 	sleep 2