From a188577ebf7e60d2fe848b6412a3f6bdcf48ba03 Mon Sep 17 00:00:00 2001 From: Snir Sheriber Date: Thu, 29 Apr 2021 14:58:00 +0300 Subject: [PATCH] agent: Set fixed NOFILE limit value for kata-agent Some applications may fail if NOFILE limit is set to unlimited. Although in some environments this value is explicitly overridden, lets set it to a more sane value in case it doesn't. Fixes #1715 Signed-off-by: Snir Sheriber --- src/agent/kata-agent.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent/kata-agent.service.in b/src/agent/kata-agent.service.in index 91dc7f5c8..2fea8f1b6 100644 --- a/src/agent/kata-agent.service.in +++ b/src/agent/kata-agent.service.in @@ -15,7 +15,7 @@ Wants=kata-containers.target StandardOutput=tty Type=simple ExecStart=@BINDIR@/@AGENT_NAME@ -LimitNOFILE=infinity +LimitNOFILE=1048576 # 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