diff options
author | Jackie Huang <jackie.huang@windriver.com> | 2013-08-19 05:10:32 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-26 11:47:17 +0100 |
commit | b9f0fc6e983f492533fd9321183666d61f474a58 (patch) | |
tree | 6befa5fe47e0915384b9ed2ea6fa5af614bd9a7b /meta | |
parent | 6d15552f8c851e03fbd9799de055cbdb6f8b0ffa (diff) | |
download | poky-b9f0fc6e983f492533fd9321183666d61f474a58.tar.gz |
openssh: add init.d/sshd status command for LSB compliance
(From OE-Core rev: d1e518b6942b945be7a4d44bc137a1441af8f837)
Signed-off-by: Li Wang <li.wang@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-connectivity/openssh/openssh-6.2p2/init | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/openssh/openssh-6.2p2/init b/meta/recipes-connectivity/openssh/openssh-6.2p2/init index 12fb79bd7c..266689c2cf 100644 --- a/meta/recipes-connectivity/openssh/openssh-6.2p2/init +++ b/meta/recipes-connectivity/openssh/openssh-6.2p2/init | |||
@@ -1,6 +1,9 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh |
2 | set -e | 2 | set -e |
3 | 3 | ||
4 | # source function library | ||
5 | . /etc/init.d/functions | ||
6 | |||
4 | # /etc/init.d/ssh: start and stop the OpenBSD "secure shell" daemon | 7 | # /etc/init.d/ssh: start and stop the OpenBSD "secure shell" daemon |
5 | 8 | ||
6 | test -x /usr/sbin/sshd || exit 0 | 9 | test -x /usr/sbin/sshd || exit 0 |
@@ -92,8 +95,13 @@ case "$1" in | |||
92 | echo "." | 95 | echo "." |
93 | ;; | 96 | ;; |
94 | 97 | ||
98 | status) | ||
99 | status /usr/sbin/sshd | ||
100 | return $? | ||
101 | ;; | ||
102 | |||
95 | *) | 103 | *) |
96 | echo "Usage: /etc/init.d/ssh {start|stop|reload|force-reload|restart}" | 104 | echo "Usage: /etc/init.d/ssh {start|stop|status|reload|force-reload|restart}" |
97 | exit 1 | 105 | exit 1 |
98 | esac | 106 | esac |
99 | 107 | ||