diff options
Diffstat (limited to 'meta/recipes-connectivity/openssh')
-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 | ||