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

Manual should explain what is meant by "rotation". #437

Open
grahamgower opened this issue Feb 15, 2022 · 1 comment
Open

Manual should explain what is meant by "rotation". #437

grahamgower opened this issue Feb 15, 2022 · 1 comment

Comments

@grahamgower
Copy link

Curiously, I couldn't find a description of precisely what is meant by log rotation. Does the current log get moved? Copied? Truncated? If a process has an open file handle, what behaviour can I expect from the program when that file is logrotated? What about races with other cron jobs that append to a logrotated file?

@kdudka
Copy link
Member

kdudka commented Feb 25, 2022

Curiously, I couldn't find a description of precisely what is meant by log rotation.

Sounds like we should add one.

Does the current log get moved? Copied? Truncated?

This actually depends on the (no)copy, (no)copytruncate, and (no)renamecopy configuration directives.

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

No branches or pull requests

2 participants