PATCH: OpenSSH RPM spec file problems

Jim Knoble jmknoble at jmknoble.cx
Mon Oct 2 10:52:18 EST 2000


Circa 2000-Sep-27 18:25:24 +0300 dixit Pekka Savola:

: There are two issues in OpenSSH RPM Red Hat spec file (against 2.2.0p1):
: 
: 1. /etc/rc.d/init.d/sshd uses 'success' and 'failure'.  These don't work
: in Red Hat 5.2; else the spec file is fine.  Initscripts requirement (for
: the one in RH60) added.

Hmmm.   I haven't looked at this for some time, but i recall patching
the initscript back before OpenSSH-1.2.3 to do this sort of thing:

  #!/bin/bash
  
  # ...
  
  case "$1" in
    start)
      # ...
      case "`type -type success`" in
        function)
	  ## For Red Hat Linux 6.0 and later
	  /usr/sbin/sshd && success "sshd startup" || failure "sshd startup"
	  RETVAL=$?
	;;
	*)
	  ## For Red Hat Linux 4.x and 5.x
	  /usr/sbin/sshd && echo -n "sshd "
	;;
      esac
      # ...
    ;;
  esac

Did that construct go away in the meantime?

-- 
jim knoble | jmknoble at jmknoble.cx | http://www.jmknoble.cx/





More information about the openssh-unix-dev mailing list