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

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 #449

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

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
  • Loading branch information
Sebastien Boeuf authored and Eric Ernst committed Apr 16, 2019
1 parent 7053762 commit b3b886b
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 b3b886b

Please sign in to comment.