Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
service: Fix user initiated shutdown
Browse files Browse the repository at this point in the history
Partially revert commit 272f273 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 <[email protected]>
  • Loading branch information
jodh-intel committed Mar 14, 2019
1 parent 13347ed commit b5befd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kata-agent.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b5befd3

Please sign in to comment.