summaryrefslogtreecommitdiff
path: root/systemd/cloud-final.service
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-11-30 15:33:28 -0500
committerScott Moser <smoser@ubuntu.com>2015-11-30 15:33:28 -0500
commitf512c0126aac5c8708065c6e8aa5510f83574657 (patch)
tree8c7f8152733bcbb41921049263729278e8245ff3 /systemd/cloud-final.service
parent97fbe6e44fc09d7522001deb7e3984272e9c26b7 (diff)
downloadvyos-cloud-init-f512c0126aac5c8708065c6e8aa5510f83574657.tar.gz
vyos-cloud-init-f512c0126aac5c8708065c6e8aa5510f83574657.zip
systemd/power_state: fix power_state when cloud-final exited failure
if a runcmd exited failure, then power_state would not work. This was because systemd was killing off subprocesses, and cloud-init implemented power off with a subprocess that waited for the parent to exit. LP: #1449318
Diffstat (limited to 'systemd/cloud-final.service')
-rw-r--r--systemd/cloud-final.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/systemd/cloud-final.service b/systemd/cloud-final.service
index c023ad94..bcbdd36f 100644
--- a/systemd/cloud-final.service
+++ b/systemd/cloud-final.service
@@ -8,6 +8,7 @@ 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