From b5befd3147051bcfa3e959b74ccd0f298b19fe9d Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Thu, 14 Mar 2019 16:19:48 +0000 Subject: [PATCH] service: Fix user initiated shutdown Partially revert commit 272f273961e70096938ac7a3fe6477023c8f715a to stop a user-initiated shutdown (typing `exit` or control-d for example at a shall prompt) from hanging and leaving the hypervisor running. Fixes #479. Signed-off-by: James O. D. Hunt --- kata-agent.service.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kata-agent.service.in b/kata-agent.service.in index 28d26587f5..2befdf6ba1 100644 --- a/kata-agent.service.in +++ b/kata-agent.service.in @@ -16,4 +16,5 @@ StandardOutput=tty Type=simple ExecStart=@bindir@/@kata-agent@ LimitNOFILE=infinity -ExecStop=/bin/sync +ExecStop=/bin/sync ; /usr/bin/systemctl --force poweroff +FailureAction=poweroff