mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-28 18:54:37 +01:00
I add another sub-command `build-service` in Makefile to generate rust-agent-related systemd service files, which are necessary for building guest rootfs image. The whole design is following the one in go-agent. Fixes: #144 Signed-off-by: Penny Zheng <penny.zheng@arm.com>
23 lines
593 B
SYSTEMD
23 lines
593 B
SYSTEMD
#
|
|
# 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
|
|
|
|
[Service]
|
|
# Send agent output to tty to allow capture debug logs
|
|
# from a VM vsock port
|
|
StandardOutput=tty
|
|
Type=simple
|
|
ExecStart=@bindir@/@kata-agent@
|
|
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
|