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

Updated log file creation mode. #6589

Closed
wants to merge 2 commits into from
Closed

Updated log file creation mode. #6589

wants to merge 2 commits into from

Conversation

russjones
Copy link
Contributor

Updated log file creation mode to O_WRONLY|O_CREATE|O_APPEND, instead of the default O_RDWR|O_CREATE|O_TRUNC by os.Create.

This allows logs to persist across process restarts.

Updated log file creation mode to "O_WRONLY|O_CREATE|O_APPEND",
instead of the default "O_RDWR|O_CREATE|O_TRUNC" by os.Create.

This allows logs to persist across process restarts.
@russjones russjones added ux c-te Internal Customer Reference labels Apr 24, 2021
@russjones
Copy link
Contributor Author

@klizhentas Can you take a look at this, changes Teleport behavior to always to log file instead of create new one on each process restart.

@klizhentas
Copy link
Contributor

This needs a signal for post logrotate to reopen the files

@russjones russjones added this to the 7.0 "Stockholm" milestone May 3, 2021
@russjones russjones marked this pull request as draft May 5, 2021 17:53
@russjones russjones closed this May 7, 2021
@zmb3 zmb3 deleted the rjones/logs-change branch August 4, 2022 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-te Internal Customer Reference ux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants