diff options
Diffstat (limited to 'opensshd.init')
-rwxr-xr-x | opensshd.init | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/opensshd.init b/opensshd.init index 4c9c806d0..40cc92b86 100755 --- a/opensshd.init +++ b/opensshd.init | |||
@@ -5,12 +5,12 @@ | |||
5 | # chkconfig: 2345 55 25 | 5 | # chkconfig: 2345 55 25 |
6 | # description: OpenSSH server daemon | 6 | # description: OpenSSH server daemon |
7 | # | 7 | # |
8 | # processname: opensshd | 8 | # processname: sshd |
9 | # config: /etc/openssh/ssh_host_key | 9 | # config: /etc/ssh/ssh_host_key |
10 | # config: /etc/openssh/ssh_host_key.pub | 10 | # config: /etc/ssh/ssh_host_key.pub |
11 | # config: /etc/openssh/ssh_random_seed | 11 | # config: /etc/ssh/ssh_random_seed |
12 | # config: /etc/openssh/sshd_config | 12 | # config: /etc/ssh/sshd_config |
13 | # pidfile: /var/run/opensshd.pid | 13 | # pidfile: /var/run/sshd.pid |
14 | 14 | ||
15 | # source function library | 15 | # source function library |
16 | . /etc/rc.d/init.d/functions | 16 | . /etc/rc.d/init.d/functions |
@@ -19,14 +19,14 @@ RETVAL=0 | |||
19 | 19 | ||
20 | case "$1" in | 20 | case "$1" in |
21 | start) | 21 | start) |
22 | echo -n "Starting opensshd: " | 22 | echo -n "Starting sshd: " |
23 | daemon /usr/sbin/opensshd | 23 | daemon /usr/sbin/sshd |
24 | RETVAL=$? | 24 | RETVAL=$? |
25 | [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sshd | 25 | [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sshd |
26 | echo | 26 | echo |
27 | ;; | 27 | ;; |
28 | stop) | 28 | stop) |
29 | echo -n "Shutting down opensshd: " | 29 | echo -n "Shutting down sshd: " |
30 | killproc sshd | 30 | killproc sshd |
31 | RETVAL=$? | 31 | RETVAL=$? |
32 | [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sshd | 32 | [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sshd |
@@ -38,11 +38,11 @@ case "$1" in | |||
38 | RETVAL=$? | 38 | RETVAL=$? |
39 | ;; | 39 | ;; |
40 | status) | 40 | status) |
41 | status opensshd | 41 | status sshd |
42 | RETVAL=$? | 42 | RETVAL=$? |
43 | ;; | 43 | ;; |
44 | *) | 44 | *) |
45 | echo "Usage: opensshd {start|stop|restart|status}" | 45 | echo "Usage: sshd {start|stop|restart|status}" |
46 | exit 1 | 46 | exit 1 |
47 | esac | 47 | esac |
48 | 48 | ||