Skip to content

Commit

Permalink
service: Don't shutdown the VM when agent terminates
Browse files Browse the repository at this point in the history
The semantic around the agent is that it should be a passive
component, hence it should not implicitly shut down the VM.

Instead, we expect the kata-runtime to be responsible for this,
using the appropriate VM interface to stop it.

Fixes kata-containers#449

Depends-on: github.com/kata-containers/tests#1101

Signed-off-by: Sebastien Boeuf <[email protected]>
Signed-off-by: James O. D. Hunt <[email protected]>
  • Loading branch information
Sebastien Boeuf authored and jodh-intel committed Mar 13, 2019
1 parent bbe06a4 commit 272f273
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions kata-agent.service.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# Copyright (c) 2018-2019 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#

[Unit]
Description=Kata Containers Agent
Documentation=https://github.com/kata-containers/agent
Expand All @@ -10,5 +16,4 @@ StandardOutput=tty
Type=simple
ExecStart=@bindir@/@kata-agent@
LimitNOFILE=infinity
ExecStop=/bin/sync ; /usr/bin/systemctl --force poweroff
FailureAction=poweroff
ExecStop=/bin/sync

0 comments on commit 272f273

Please sign in to comment.