Skip to content

Commit b27a733

Browse files
committed
Remove LimitNOFILE from systemd service file
Explicit configuration for `LimitNOFILE` in the reference `crio.service` systemd service file is removed. CRI-O's rlimits are inherited by containers, so the daemon's `LimitNOFILE` affects `RLIMIT_NOFILE` within containers. It is recommended to use the default systemd `LimitNOFILE` configuration. Administrators on platforms running versions less than systemd 240 should explicitly configure `LimitNOFILE=1024:524288` or risk falling back to the kernel default of `4096`. Fixes: cri-o#7703 Signed-off-by: Sascha Grunert <[email protected]>
1 parent 5df9c0e commit b27a733

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

contrib/systemd/crio.service

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ ExecStart=/usr/local/bin/crio \
1717
$CRIO_METRICS_OPTIONS
1818
ExecReload=/bin/kill -s HUP $MAINPID
1919
TasksMax=infinity
20-
LimitNOFILE=1048576
2120
LimitNPROC=1048576
2221
LimitCORE=infinity
2322
OOMScoreAdjust=-999

0 commit comments

Comments
 (0)