summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarret Holmstrom <>2012-08-31 13:33:54 -0400
committerScott Moser <smoser@ubuntu.com>2012-08-31 13:33:54 -0400
commit53f276c22ef57f49bfae5c6ddc233043d0ef51ad (patch)
tree804f7612301990bf045943ced052435db706c34d
parent09cec0837a20f6cfafa520aa0ff2e484e1fd9c01 (diff)
parent3ac504a49a3755e58f6e74b7a17f98f3d4a4eb0c (diff)
downloadvyos-cloud-init-53f276c22ef57f49bfae5c6ddc233043d0ef51ad.tar.gz
vyos-cloud-init-53f276c22ef57f49bfae5c6ddc233043d0ef51ad.zip
update systemd unit files
The systemd unit files are somewhat out of date. Fixes here include telling systemd to send stdout to a tty so it shows up in console output, updating the ways they call cloud-init, and disabling timeouts so cloud-config work doesn't get timed out after 90 seconds.
-rw-r--r--systemd/cloud-config.service6
-rw-r--r--systemd/cloud-final.service6
-rw-r--r--systemd/cloud-init-local.service6
-rw-r--r--systemd/cloud-init.service6
4 files changed, 20 insertions, 4 deletions
diff --git a/systemd/cloud-config.service b/systemd/cloud-config.service
index 696230f6..fc72fc48 100644
--- a/systemd/cloud-config.service
+++ b/systemd/cloud-config.service
@@ -6,8 +6,12 @@ Wants=network.target
[Service]
Type=oneshot
-ExecStart=/usr/bin/cloud-init-cfg all config
+ExecStart=/usr/bin/cloud-init modules --mode=config
RemainAfterExit=yes
+TimeoutSec=0
+
+# Output needs to appear in instance console output
+StandardOutput=tty
[Install]
WantedBy=multi-user.target
diff --git a/systemd/cloud-final.service b/systemd/cloud-final.service
index 23275ee5..f836eab6 100644
--- a/systemd/cloud-final.service
+++ b/systemd/cloud-final.service
@@ -6,8 +6,12 @@ Wants=network.target
[Service]
Type=oneshot
-ExecStart=/usr/bin/cloud-init-cfg all final
+ExecStart=/usr/bin/cloud-init modules --mode=final
RemainAfterExit=yes
+TimeoutSec=0
+
+# Output needs to appear in instance console output
+StandardOutput=tty
[Install]
WantedBy=multi-user.target
diff --git a/systemd/cloud-init-local.service b/systemd/cloud-init-local.service
index 2d57567f..6a551710 100644
--- a/systemd/cloud-init-local.service
+++ b/systemd/cloud-init-local.service
@@ -5,8 +5,12 @@ After=local-fs.target
[Service]
Type=oneshot
-ExecStart=/usr/bin/cloud-init start-local
+ExecStart=/usr/bin/cloud-init init --local
RemainAfterExit=yes
+TimeoutSec=0
+
+# Output needs to appear in instance console output
+StandardOutput=tty
[Install]
WantedBy=multi-user.target
diff --git a/systemd/cloud-init.service b/systemd/cloud-init.service
index b8f6f49d..d4eb9fa5 100644
--- a/systemd/cloud-init.service
+++ b/systemd/cloud-init.service
@@ -6,8 +6,12 @@ Wants=local-fs.target cloud-init-local.service
[Service]
Type=oneshot
-ExecStart=/usr/bin/cloud-init start
+ExecStart=/usr/bin/cloud-init init
RemainAfterExit=yes
+TimeoutSec=0
+
+# Output needs to appear in instance console output
+StandardOutput=tty
[Install]
WantedBy=multi-user.target