Anpassungen fuer upstart...
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_openssh@5534 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
parent
19d3ff3545
commit
04bd933768
21
etc/init/sshd.conf
Normal file
21
etc/init/sshd.conf
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
description "ssh daemon startup"
|
||||||
|
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
||||||
|
version 1.0
|
||||||
|
emits none special
|
||||||
|
|
||||||
|
start on (runlevel [2345] and (started rpc))
|
||||||
|
stop on runlevel [S016]
|
||||||
|
|
||||||
|
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
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if [ -d /var/install/sysvinit* ]; then
|
||||||
WDIR=`pwd`
|
WDIR=`pwd`
|
||||||
cd etc/init.d
|
cd etc/init.d
|
||||||
chmod 755 sshd
|
chmod 755 sshd
|
||||||
|
@ -30,3 +31,4 @@ for i in 3 4 5; do
|
||||||
cd ..
|
cd ..
|
||||||
done
|
done
|
||||||
cd $WDIR
|
cd $WDIR
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user