]> git.pld-linux.org Git - packages/openssh.git/blobdiff - opensshd.init
- typo
[packages/openssh.git] / 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.023368 seconds and 4 git commands to generate.