Merge pull request #1778 from snir911/patch_nofile

Set fixed NOFILE limit value for kata-agent
This commit is contained in:
Fupan Li 2021-05-07 13:06:10 +08:00 committed by GitHub
commit 487e165093
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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