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>
This commit is contained in:
parent
6d15552f8c
commit
b9f0fc6e98
|
@ -1,6 +1,9 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# source function library
|
||||||
|
. /etc/init.d/functions
|
||||||
|
|
||||||
# /etc/init.d/ssh: start and stop the OpenBSD "secure shell" daemon
|
# /etc/init.d/ssh: start and stop the OpenBSD "secure shell" daemon
|
||||||
|
|
||||||
test -x /usr/sbin/sshd || exit 0
|
test -x /usr/sbin/sshd || exit 0
|
||||||
|
@ -92,8 +95,13 @@ case "$1" in
|
||||||
echo "."
|
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
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue