Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix hanging start-stop-daemon in footloose Alpine
Some distributions package Docker in a way that allows for a vast number of open file descriptors, often achieved through systemd's `LimitNOFILE=infinity` configuration. This situation leads to start- stop-daemon appearing to hang, consequently blocking the OpenRC init sequence. However, the issue is not an actual hang; rather, it attempts to close all open file descriptors, resulting in a loop with approximately one billion iterations of the close() syscall. This behavior effectively renders the footloose machine unable to boot. Mitigate this by setting the open file descriptor limit to 1 Mi in OpenRC's rc.conf. Signed-off-by: Tom Wieczorek <[email protected]> Link: moby/moby@8db6109 Link: https://github.com/OpenRC/openrc/blob/eb8831a1416ab2ee8123b3add78421c2aa316b39/src/start-stop-daemon/start-stop-daemon.c#L1104-L1105 (cherry picked from commit ed4e359) (cherry picked from commit a886865)
- Loading branch information