summaryrefslogtreecommitdiff
path: root/systemd/cloud-init.service
blob: 1f656f7f185cbd51ab195741f1339493df5b23a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[Unit]
Description=Initial cloud-init job (metadata service crawler)
After=local-fs.target network-online.target cloud-init-local.service
Before=sshd.service sshd-keygen.service systemd-user-sessions.service
Requires=network-online.target
Wants=local-fs.target cloud-init-local.service sshd.service sshd-keygen.service

[Service]
Type=oneshot
ExecStart=/usr/bin/cloud-init init
RemainAfterExit=yes
TimeoutSec=0

# Output needs to appear in instance console output
StandardOutput=journal+console

[Install]
WantedBy=cloud-init.target