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

fix SELinux context of Redmine logs so that logrotate works #1990

Closed
wants to merge 1 commit into from

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Nov 20, 2023

Fixes: #1989

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was under the assumption we created /var/log/redmine and used a symlink / config item.

We can also log to stdout. config/environments/production.rb defines RAILS_LOG_TO_STDOUT as an env var:
https://github.com/theforeman/redmine/blob/c300f97c1f1760da5e2b2135d89f8998f95462da/config/environments/production.rb#L61-L65

Should we use that and trust journald to rotate?

@evgeni
Copy link
Member Author

evgeni commented Jan 12, 2024

This turned out not to work as expected anyway :(

@evgeni evgeni closed this May 8, 2024
@evgeni evgeni deleted the redmine-selinux-fixes branch May 8, 2024 11:07
@evgeni
Copy link
Member Author

evgeni commented May 8, 2024

Yes, doing so in #2067

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

Successfully merging this pull request may close these issues.

redmine:production.log is not rotated and grows indefinetly
2 participants