-
Notifications
You must be signed in to change notification settings - Fork 3.9k
containerd,nerdctl: preserve config files + add init script #29487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,16 @@ | ||||||||||||||||||||||||||||
| #!/bin/sh /etc/rc.common | ||||||||||||||||||||||||||||
| # Copyright (C) 2009-2026 OpenWrt.org | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| START=99 | ||||||||||||||||||||||||||||
| STOP=80 | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| USE_PROCD=1 | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| CONTAINERD_BIN="/usr/bin/containerd" | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| start_service() { | ||||||||||||||||||||||||||||
| procd_open_instance | ||||||||||||||||||||||||||||
| procd_set_param respawn | ||||||||||||||||||||||||||||
| procd_set_param command $CONTAINERD_BIN | ||||||||||||||||||||||||||||
| procd_close_instance | ||||||||||||||||||||||||||||
|
Comment on lines
+11
to
+15
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The service is started without raising the open-file limit. containerd, like the runtime it powers, keeps many file descriptors open (sockets, container fds, shim connections) and the kernel default (often 1024) is easily exhausted. The sibling
Suggested change
Generated by Claude Code |
||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please separate adding init file to its own commit, pleaase? It would be better for cherry-picking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both changes require bumping PKG_RELEASE so not sure how to achieve that cleanly?