mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-28 01:49:49 +00:00
Increase the NOFILE limit in the systemd service, this helps with running databases in the Kata runtime. Signed-off-by: Champ-Goblem <cameron@northflank.com>
25 lines
663 B
SYSTEMD
25 lines
663 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@/@AGENT_NAME@
|
|
LimitNOFILE=1073741824
|
|
# 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
|
|
# Discourage OOM-killer from touching the agent
|
|
OOMScoreAdjust=-997
|