]> git.pld-linux.org Git - packages/openssh.git/commitdiff
- generate key in checkconfig, so upstart would get new ssh_host_ecdsa_key key on...
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 20 Feb 2011 10:29:52 +0000 (10:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    opensshd.init -> 1.47

opensshd.init

index 5a3a4cdcd32861ff2f0fa6bce213c47d29e3d2a8..02dbb085d6b5de40290b69f31cf668aa6204137a 100644 (file)
@@ -40,6 +40,7 @@ adjust_oom() {
 }
 
 checkconfig() {
+       ssh_gen_keys
        /usr/sbin/sshd -t || exit 1
 }
 
@@ -74,7 +75,6 @@ start() {
                return
        fi
 
-       ssh_gen_keys
        checkconfig
 
        if [ ! -s /etc/ssh/ssh_host_key ]; then
@@ -118,7 +118,6 @@ reload() {
                return
        fi
 
-       ssh_gen_keys
        checkconfig
        msg_reloading "OpenSSH"
        killproc sshd -HUP
This page took 0.143935 seconds and 4 git commands to generate.