Skip to content
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

global rlimit-core #21

Open
nekopsykose opened this issue Sep 7, 2024 · 0 comments
Open

global rlimit-core #21

nekopsykose opened this issue Sep 7, 2024 · 0 comments

Comments

@nekopsykose
Copy link
Contributor

to get global core dumps under a user, one can ulimit -c unlimited somehow before starting a session or use limits.conf for their user (via pam).

dinit does not use the latter (duh) and there is no way to set the former globally from pid 1; service files have rlimit-core = but putting this in every service is unwieldy if one wants to 'generate a core for any crash of a system service'

the default cwd for services is /etc/dinit.d so paired with that it would be funny (not); but for me where i handle things with kernel.core_pattern = | it would be nice to have a way to opt-in to set the core ulimit globally starting with pid 1 so system services all dump their cores and i get to look at them later (and we would perhaps want this anyway eventually with an actual core handler). i'm not sure if this needs actual dinit changes (or if there's some way i missed) or if there's another way to make sure this is set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant