@@ -13,7 +13,7 @@
1313# pidfile: /var/run/sshd.pid
1414
1515# source function library
16−. @initscripts@/etc/rc.d/init.d/functions
16+source @initscripts@/functions
1717
1818# pull in sysconfig settings
1919[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd
@@ -34,7 +34,7 @@ do_rsa1_keygen() {
3434 if [ ! -s $RSA1_KEY ]; then
3535 echo -n $"Generating SSH1 RSA host key: "
3636 if $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
37− @coreutils/bin/chmod 600 $RSA1_KEY
37+ @coreutils@/bin/chmod 600 $RSA1_KEY
3838 @coreutils@/bin/chmod 644 $RSA1_KEY.pub
3939 success $"RSA1 key generation"
4040 echo
@@ -88,7 +88,7 @@ do_restart_sanity_check()
8888 fi
8989}
9090
91−start()
91+startService()
9292{
9393 # Create keys if necessary
9494 do_rsa1_keygen
@@ -96,13 +96,14 @@ start()
9696 do_dsa_keygen
9797
9898 echo -n $"Starting $prog:"
99− @initscripts@/sbin/initlog -c "$SSHD $OPTIONS" && success || failure
99+ #@initscripts@/sbin/initlog -c "$SSHD $OPTIONS" && success || failure
100+ $SSHD $OPTIONS
100101 RETVAL=$?
101102 [ "$RETVAL" = 0 ] && @coreutils@/bin/touch /var/lock/subsys/sshd
102103 echo
103104}
104105
105−stop()
106+stopService()
106107{
107108 echo -n $"Stopping $prog:"
108109 killproc $SSHD -TERM