2cfe1de66a
git-svn-id: svn://svn.compuextreme.de/Viitor/V961/Viitor_upstartaddon@4330 504e572c-2e33-0410-9681-be2bf7408885
22 lines
550 B
Plaintext
22 lines
550 B
Plaintext
# rc - runlevel compatibility
|
|
#
|
|
# This task guesses what the "default runlevel" should be and starts the
|
|
# appropriate script.
|
|
|
|
start on started syslogd
|
|
stop on stopping syslogd
|
|
|
|
console output
|
|
|
|
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
|
|
respawn
|