
don't declare a Wants/Requires on network.target; this is a passive target that should only be pulled in by implementors of the networking service. The requirement for network needs to be expressed as a dependency on network-online.target.
17 lines
411 B
Desktop File
17 lines
411 B
Desktop File
[Unit]
|
|
Description=Execute cloud user/final scripts
|
|
After=network-online.target cloud-config.service syslog.target rc-local.service
|
|
Wants=network-online.target cloud-config.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/bin/cloud-init modules --mode=final
|
|
RemainAfterExit=yes
|
|
TimeoutSec=0
|
|
|
|
# Output needs to appear in instance console output
|
|
StandardOutput=journal+console
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|