--- /etc/init.d/sshd	2002-07-09 23:46:41.000000000 +1200
+++ /etc/init.d/sshd2	2003-02-05 20:55:31.000000000 +1300
@@ -10,12 +10,12 @@
 # /usr/sbin/rcsshd
 #
 ### BEGIN INIT INFO
-# Provides: sshd
+# Provides: sshd2
 # Required-Start: $network
 # Required-Stop: $network
 # Default-Start: 3 5
 # Default-Stop: 0 1 2 6
-# Description: Start the sshd daemon
+# Description: Start the backup sshd daemon
 ### END INIT INFO
 
 . /etc/rc.status
@@ -52,7 +52,7 @@
 	## Start daemon with startproc(8). If this fails
 	## the echo return value is set appropriate.
 
-	startproc -f /usr/sbin/sshd $SSHD_OPTS
+	startproc -f /usr/sbin/sshd -p $SSHD_2_PORT $SSHD_2_OPTS
 
 	# Remember status and be verbose
 	rc_status -v
@@ -64,7 +64,7 @@
 
 	if [ -x /bin/netstat ]; then
 	   netstat -nlp 2>/dev/null | while read prot a b local remote state prog; do
-	      if [ "${local##*:}" = "22" ] ; then 
+	      if [ "${local##*:}" = "$SSHD_2_PORT" ] ; then 
 	         if [ -n "$prog" ]; then
 	            kill -TERM ${prog%%/*}
 	         fi
@@ -105,7 +105,7 @@
 
 	if [ -x /bin/netstat ]; then
 	   netstat -nlp 2>/dev/null | (while read prot a b local remote state prog; do
-	         if [ "${local##*:}" = "22" ] ; then
+	         if [ "${local##*:}" = "$SSHD_2_PORT" ] ; then
 	            LISTENING_SSHD=$prog
 	         fi
 	      done
@@ -139,7 +139,7 @@
 
 	if [ -x /bin/netstat ]; then
 	   netstat -nlp 2>/dev/null | ( while read prot a b local remote state prog; do
-	         if [ "${local##*:}" = "22" ] ; then
+	         if [ "${local##*:}" = "$SSHD_2_PORT" ] ; then
 	            LISTENING_SSHD=$prog
 	         fi
 	      done
--- /etc/sysconfig/ssh.orig	2003-01-22 11:51:33.000000000 +1300
+++ /etc/sysconfig/ssh	2003-02-05 21:00:48.000000000 +1300
@@ -2,3 +2,10 @@
 # Options for sshd
 #
 SSHD_OPTS=""
+
+
+# Options for backup ssh daemon, and port number it's listening on
+# (The port number variable is used by the init script)
+#
+SSHD_2_PORT="222"
+SSHD_2_OPTS="-4 -f /etc/ssh/sshd_config.222 -o Protocol=2"

