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

Commit b3b886b

Browse files
Sebastien BoeufEric Ernst
authored andcommitted
service: Don't shutdown the VM when agent terminates
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>
1 parent 7053762 commit b3b886b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

kata-agent.service.in

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
#
2+
# Copyright (c) 2018-2019 Intel Corporation
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
17
[Unit]
28
Description=Kata Containers Agent
39
Documentation=https://github.com/kata-containers/agent
@@ -10,5 +16,4 @@ StandardOutput=tty
1016
Type=simple
1117
ExecStart=@bindir@/@kata-agent@
1218
LimitNOFILE=infinity
13-
ExecStop=/bin/sync ; /usr/bin/systemctl --force poweroff
14-
FailureAction=poweroff
19+
ExecStop=/bin/sync

0 commit comments

Comments
 (0)