From dd9499d0daa862bcf2ce11e2949134df22f07c84 Mon Sep 17 00:00:00 2001 From: Jordan Evans Date: Tue, 24 Jun 2014 12:33:12 -0700 Subject: Add wants for sshd to make sure there isn't a race condition --- systemd/cloud-init.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/systemd/cloud-init.service b/systemd/cloud-init.service index 018a1fa8..d12852d8 100644 --- a/systemd/cloud-init.service +++ b/systemd/cloud-init.service @@ -1,8 +1,9 @@ [Unit] Description=Initial cloud-init job (metadata service crawler) After=local-fs.target network.target cloud-init-local.service +Before=sshd.service Requires=network.target -Wants=local-fs.target cloud-init-local.service +Wants=local-fs.target cloud-init-local.service sshd.service [Service] Type=oneshot -- cgit v1.2.3 From 31621d585d183e09b3d857ef2a16bfb699b3a591 Mon Sep 17 00:00:00 2001 From: Jordan Evans Date: Tue, 15 Jul 2014 09:27:21 -0700 Subject: run before sshd-keygen.service --- systemd/cloud-init.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/systemd/cloud-init.service b/systemd/cloud-init.service index d12852d8..6b0c7229 100644 --- a/systemd/cloud-init.service +++ b/systemd/cloud-init.service @@ -1,9 +1,9 @@ [Unit] Description=Initial cloud-init job (metadata service crawler) After=local-fs.target network.target cloud-init-local.service -Before=sshd.service +Before=sshd.service sshd-keygen.service Requires=network.target -Wants=local-fs.target cloud-init-local.service sshd.service +Wants=local-fs.target cloud-init-local.service sshd.service sshd-keygen.service [Service] Type=oneshot -- cgit v1.2.3