Skip to content

Commit c691c36

Browse files
committed
systemd: use LimitNOFILE=infinity instead of hard-coded max value
According to the systemd documentation, `infinity` can be used for all limits; https://www.freedesktop.org/software/systemd/man/systemd.exec.html#Process%20Properties > Resource limits may be specified in two formats: either as single value to set a > specific soft and hard limit to the same value, or as colon-separated pair soft:hard > (...) Use the string infinity to configure no limit on a specific resource. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 4336625 commit c691c36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

containerd.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RestartSec=5
1616
# in the kernel. We recommend using cgroups to do container-local accounting.
1717
LimitNPROC=infinity
1818
LimitCORE=infinity
19-
LimitNOFILE=1048576
19+
LimitNOFILE=infinity
2020
# Comment TasksMax if your systemd version does not supports it.
2121
# Only systemd 226 and above support this version.
2222
TasksMax=infinity

0 commit comments

Comments
 (0)