summaryrefslogtreecommitdiff
path: root/systemd/cloud-final.service.tmpl
blob: fc01b891b9a2c062b0c6d2f1387c1063cfbf47f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
## template:jinja
[Unit]
Description=Execute cloud user/final scripts
After=network-online.target cloud-config.service rc-local.service
{% if variant in ["ubuntu", "unknown", "debian"] %}
After=multi-user.target
{% endif %}
Wants=network-online.target cloud-config.service
Before=apt-daily.service

[Service]
Type=oneshot
ExecStart=/usr/bin/cloud-init modules --mode=final
RemainAfterExit=yes
TimeoutSec=0
KillMode=process

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

[Install]
WantedBy=cloud-init.target