summarylogtreecommitdiffstats
path: root/kata-agent.service.in
diff options
context:
space:
mode:
authorzer0def2020-11-03 07:45:18 +0100
committerzer0def2020-11-03 13:43:37 +0100
commit161ad664a34245d74f4f676cd0ce93c129f670c2 (patch)
tree318e021601c1f7fa157ea8e51ca96b6fa1aea1b4 /kata-agent.service.in
parent6d069ee0a97e157f399852496aa2ee864fec7d8a (diff)
downloadaur-161ad664a34245d74f4f676cd0ce93c129f670c2.tar.gz
Added initrd and image builds
Diffstat (limited to 'kata-agent.service.in')
-rw-r--r--kata-agent.service.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/kata-agent.service.in b/kata-agent.service.in
new file mode 100644
index 000000000000..0340bdbbbd54
--- /dev/null
+++ b/kata-agent.service.in
@@ -0,0 +1,24 @@
+#
+# Copyright (c) 2018-2019 Intel Corporation
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+
+[Unit]
+Description=Kata Containers Agent
+Documentation=https://github.com/kata-containers/kata-containers
+Wants=kata-containers.target
+#ConditionPathExists=/etc/initrd-release
+#DefaultDependencies=no
+
+[Service]
+# Send agent output to tty to allow capture debug logs
+# from a VM vsock port
+StandardOutput=tty
+Type=simple
+ExecStart=@BINDIR@/@AGENT_NAME@
+LimitNOFILE=infinity
+# 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