2010-04-20 15:57:56 +00:00
|
|
|
description "ssh daemon startup"
|
|
|
|
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
|
|
|
version 1.0
|
|
|
|
emits none special
|
|
|
|
|
|
|
|
start on (runlevel [2345] and (started rpc))
|
2010-06-23 10:16:49 +00:00
|
|
|
stop on runlevel [016]
|
2010-04-20 15:57:56 +00:00
|
|
|
|
|
|
|
console none
|
|
|
|
|
|
|
|
pre-start script
|
|
|
|
if [ ! -f /etc/sysconfig/ssh/ssh_host_key ]; then
|
|
|
|
ssh-keygen -N "" -t rsa1 -f /etc/sysconfig/ssh/ssh_host_key
|
|
|
|
ssh-keygen -N "" -t rsa -f /etc/sysconfig/ssh/ssh_host_rsa_key
|
|
|
|
ssh-keygen -N "" -t dsa -f /etc/sysconfig/ssh/ssh_host_dsa_key
|
|
|
|
chmod 0600 /etc/sysconfig/ssh/*key*
|
|
|
|
fi
|
|
|
|
end script
|
|
|
|
|
|
|
|
exec /usr/sbin/sshd -D
|
|
|
|
|