Skip to content

Commit

Permalink
service: Fix user initiated shutdown with static tracing
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. This
issue only occurs when static agent tracing is in operation.

Fixes kata-containers#479.

Signed-off-by: James O. D. Hunt <[email protected]>
  • Loading branch information
jodh-intel committed Mar 20, 2019
1 parent a41f322 commit 353ec2d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kata-agent.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@ StandardOutput=tty
Type=simple
ExecStart=@bindir@/@kata-agent@
LimitNOFILE=infinity
ExecStop=/bin/sync
# ExecStop is required for static agent tracing; in all other scenarios
# the runtime handles shutting down the VM.
ExecStop=/bin/sync ; /usr/bin/systemctl --force poweroff
FailureAction=poweroff

0 comments on commit 353ec2d

Please sign in to comment.