summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2013-08-19 05:10:32 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-26 11:26:01 +0100
commitd1e518b6942b945be7a4d44bc137a1441af8f837 (patch)
treecbc7b11583aecef98a3af5c3cf7d6b7c25b9ebf1 /meta
parent9c19592afac6b38df7038da02bcda26dc28b4e4c (diff)
downloadopenembedded-core-d1e518b6942b945be7a4d44bc137a1441af8f837.tar.gz
openembedded-core-d1e518b6942b945be7a4d44bc137a1441af8f837.tar.bz2
openembedded-core-d1e518b6942b945be7a4d44bc137a1441af8f837.zip
openssh: add init.d/sshd status command for LSB compliance
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>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-connectivity/openssh/openssh-6.2p2/init10
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 @@
#! /bin/sh
set -e
+# source function library
+. /etc/init.d/functions
+
# /etc/init.d/ssh: start and stop the OpenBSD "secure shell" daemon
test -x /usr/sbin/sshd || exit 0
@@ -92,8 +95,13 @@ case "$1" in
echo "."
;;
+ status)
+ status /usr/sbin/sshd
+ return $?
+ ;;
+
*)
- echo "Usage: /etc/init.d/ssh {start|stop|reload|force-reload|restart}"
+ echo "Usage: /etc/init.d/ssh {start|stop|status|reload|force-reload|restart}"
exit 1
esac