meta-stx: re-name and re-org to align with upstream
[pti/rtp.git] / meta-starlingx / meta-stx-integ / recipes-connectivity / openssh / files / stx / sshd-keygen.service
diff --git a/meta-starlingx/meta-stx-integ/recipes-connectivity/openssh/files/stx/sshd-keygen.service b/meta-starlingx/meta-stx-integ/recipes-connectivity/openssh/files/stx/sshd-keygen.service
new file mode 100644 (file)
index 0000000..77cffeb
--- /dev/null
@@ -0,0 +1,11 @@
+[Unit]
+Description=OpenSSH Server Key Generation
+ConditionFileNotEmpty=|!/etc/ssh/ssh_host_rsa_key
+ConditionFileNotEmpty=|!/etc/ssh/ssh_host_ecdsa_key
+ConditionFileNotEmpty=|!/etc/ssh/ssh_host_ed25519_key
+PartOf=sshd.service sshd.socket
+
+[Service]
+ExecStart=/usr/sbin/sshd-keygen
+Type=oneshot
+RemainAfterExit=yes