Skip to content

Commit

Permalink
systemd: update config and final to run even if init jobs fail
Browse files Browse the repository at this point in the history
LP: #1432758
  • Loading branch information
smoser committed Mar 17, 2015
1 parent ad820a9 commit ccdf4ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions systemd/cloud-config.service
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[Unit]
Description=Apply the settings specified in cloud-config
After=network.target syslog.target cloud-config.target
Requires=cloud-config.target
Wants=network.target
After=network.target cloud-config.target syslog.target
Wants=network.target cloud-config.target

[Service]
Type=oneshot
Expand Down
3 changes: 2 additions & 1 deletion systemd/cloud-config.target
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@

[Unit]
Description=Cloud-config availability
Requires=cloud-init-local.service cloud-init.service
Wants=cloud-init-local.service cloud-init.service
After=cloud-init-local.service cloud-init.service
5 changes: 2 additions & 3 deletions systemd/cloud-final.service
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[Unit]
Description=Execute cloud user/final scripts
After=network.target syslog.target cloud-config.service rc-local.service
Requires=cloud-config.target
Wants=network.target
After=network.target cloud-config.service syslog.target rc-local.service
Wants=network.target cloud-config.service

[Service]
Type=oneshot
Expand Down

0 comments on commit ccdf4ff

Please sign in to comment.