
that device and write to it directly things can start going haywire. Here we address this problem by sending console-bound output to stdout and letting init take care of getting it to the console instead. We already configure upstart with "console output", so we need only change systemd to use "journal+console".
18 lines
416 B
Desktop File
18 lines
416 B
Desktop File
[Unit]
|
|
Description=Initial cloud-init job (metadata service crawler)
|
|
After=local-fs.target network.target cloud-init-local.service
|
|
Requires=network.target
|
|
Wants=local-fs.target cloud-init-local.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=multi-user.target
|