summaryrefslogtreecommitdiff
path: root/systemd/cloud-init.service
diff options
context:
space:
mode:
authorJordan Evans <jordane@osuosl.org>2014-06-24 12:33:12 -0700
committerJordan Evans <jordane@osuosl.org>2014-06-24 12:33:12 -0700
commitdd9499d0daa862bcf2ce11e2949134df22f07c84 (patch)
tree3a695e479a168a5914cdab803175de459ad88ec5 /systemd/cloud-init.service
parent9a61ab153ab9d68fb796650666d4ad6729926685 (diff)
downloadvyos-cloud-init-dd9499d0daa862bcf2ce11e2949134df22f07c84.tar.gz
vyos-cloud-init-dd9499d0daa862bcf2ce11e2949134df22f07c84.zip
Add wants for sshd to make sure there isn't a race condition
Diffstat (limited to 'systemd/cloud-init.service')
-rw-r--r--systemd/cloud-init.service3
1 files changed, 2 insertions, 1 deletions
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