mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-29 00:37:24 +00:00
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 <ssheribe@redhat.com>
(cherry picked from commit a188577ebf
)
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
This commit is contained in:
parent
7c9067cc9d
commit
68cad37720
@ -15,7 +15,7 @@ Wants=kata-containers.target
|
|||||||
StandardOutput=tty
|
StandardOutput=tty
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=@BINDIR@/@AGENT_NAME@
|
ExecStart=@BINDIR@/@AGENT_NAME@
|
||||||
LimitNOFILE=infinity
|
LimitNOFILE=1048576
|
||||||
# ExecStop is required for static agent tracing; in all other scenarios
|
# ExecStop is required for static agent tracing; in all other scenarios
|
||||||
# the runtime handles shutting down the VM.
|
# the runtime handles shutting down the VM.
|
||||||
ExecStop=/bin/sync ; /usr/bin/systemctl --force poweroff
|
ExecStop=/bin/sync ; /usr/bin/systemctl --force poweroff
|
||||||
|
Loading…
Reference in New Issue
Block a user