diff options
author | Damien Miller <djm@mindrot.org> | 1999-12-07 14:53:57 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 1999-12-07 14:53:57 +1100 |
commit | 0c078c663312a31045b5a59196610e086bc8b4b2 (patch) | |
tree | 5b00df18aa2e177303c12e6615547bd4c5f05fc7 | |
parent | aae6c614da614eb10ced16505f35410671c95d9d (diff) |
- sshd Redhat init script patch from Jim Knoble <jmknoble@pobox.com>
fixes compatability with 4.x and 5.x
-rw-r--r-- | ChangeLog | 4 | ||||
-rwxr-xr-x | packages/redhat/sshd.init | 12 |
2 files changed, 14 insertions, 2 deletions
@@ -1,3 +1,7 @@ | |||
1 | 19991207 | ||
2 | - sshd Redhat init script patch from Jim Knoble <jmknoble@pobox.com> | ||
3 | fixes compatability with 4.x and 5.x | ||
4 | |||
1 | 19991204 | 5 | 19991204 |
2 | - Small cleanup of PAM code in sshd.c | 6 | - Small cleanup of PAM code in sshd.c |
3 | - Merged OpenBSD CVS changes: | 7 | - Merged OpenBSD CVS changes: |
diff --git a/packages/redhat/sshd.init b/packages/redhat/sshd.init index 5e9194899..a62866a2a 100755 --- a/packages/redhat/sshd.init +++ b/packages/redhat/sshd.init | |||
@@ -21,8 +21,16 @@ case "$1" in | |||
21 | start) | 21 | start) |
22 | echo -n "Starting sshd: " | 22 | echo -n "Starting sshd: " |
23 | if [ ! -f /var/run/sshd.pid ] ; then | 23 | if [ ! -f /var/run/sshd.pid ] ; then |
24 | /usr/sbin/sshd && success "sshd startup" || failure "sshd startup" | 24 | case "`type -type success`" in |
25 | RETVAL=$? | 25 | function) |
26 | /usr/sbin/sshd && success "sshd startup" || failure "sshd startup" | ||
27 | RETVAL=$? | ||
28 | ;; | ||
29 | *) | ||
30 | /usr/sbin/sshd && echo -n "sshd " | ||
31 | RETVAL=$? | ||
32 | ;; | ||
33 | esac | ||
26 | fi | 34 | fi |
27 | echo | 35 | echo |
28 | ;; | 36 | ;; |