--- /etc/init.d/sshd Wed Jun 26 21:56:10 2002 +++ /etc/init.d/sshd_adm Thu Jun 9 16:56:46 2005 @@ -5,29 +5,30 @@ # chkconfig: 2345 55 25 # description: OpenSSH server daemon # -# processname: sshd +# processname: sshd_adm # config: /etc/ssh/ssh_host_key # config: /etc/ssh/ssh_host_key.pub # config: /etc/ssh/ssh_random_seed -# config: /etc/ssh/sshd_config -# pidfile: /var/run/sshd.pid +# config: /etc/ssh/sshd_config_adm +# pidfile: /var/run/sshd_adm.pid # source function library . /etc/rc.d/init.d/functions # pull in sysconfig settings -[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd +[ -f /etc/sysconfig/sshd_adm ] && . /etc/sysconfig/sshd_adm RETVAL=0 -prog="sshd" +prog="sshd_adm" # Some functions to make the below more readable KEYGEN=/usr/bin/ssh-keygen -SSHD=/usr/sbin/sshd +SSHD=/usr/sbin/sshd_adm RSA1_KEY=/etc/ssh/ssh_host_key RSA_KEY=/etc/ssh/ssh_host_rsa_key DSA_KEY=/etc/ssh/ssh_host_dsa_key -PID_FILE=/var/run/sshd.pid +PID_FILE=/var/run/sshd_adm.pid +OPTIONS="-f /etc/ssh/sshd_config_adm -o \"PidFile ${PID_FILE}\" ${OPTIONS}" do_rsa1_keygen() { if [ ! -s $RSA1_KEY ]; then @@ -97,7 +98,7 @@ echo -n $"Starting $prog:" initlog -c "$SSHD $OPTIONS" && success || failure RETVAL=$? - [ "$RETVAL" = 0 ] && touch /var/lock/subsys/sshd + [ "$RETVAL" = 0 ] && touch /var/lock/subsys/sshd_adm echo } @@ -106,7 +107,7 @@ echo -n $"Stopping $prog:" killproc $SSHD -TERM RETVAL=$? - [ "$RETVAL" = 0 ] && rm -f /var/lock/subsys/sshd + [ "$RETVAL" = 0 ] && rm -f /var/lock/subsys/sshd_adm echo } @@ -133,7 +134,7 @@ reload ;; condrestart) - if [ -f /var/lock/subsys/sshd ] ; then + if [ -f /var/lock/subsys/sshd_adm ] ; then do_restart_sanity_check if [ "$RETVAL" = 0 ] ; then stop