* [PATCH] openssh: openssh's init fails to restart if sshd is not running
@ 2012-07-27 15:06 Amy Fong
2012-08-17 20:52 ` Saul Wold
0 siblings, 1 reply; 2+ messages in thread
From: Amy Fong @ 2012-07-27 15:06 UTC (permalink / raw)
To: openembedded-core
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
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] openssh: openssh's init fails to restart if sshd is not running
2012-07-27 15:06 [PATCH] openssh: openssh's init fails to restart if sshd is not running Amy Fong
@ 2012-08-17 20:52 ` Saul Wold
0 siblings, 0 replies; 2+ messages in thread
From: Saul Wold @ 2012-08-17 20:52 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On 07/27/2012 08:06 AM, Amy Fong wrote:
> 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
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
Merged into OE-Core
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-17 21:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-27 15:06 [PATCH] openssh: openssh's init fails to restart if sshd is not running Amy Fong
2012-08-17 20:52 ` Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox