-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Reload Log Files #1437
Comments
i have this problem too, seems gitea manages by own the log files and the OS vendor distribution cannot take care of to manage it as must be |
You can use copytruncate option of logrotate. |
I would consider copytruncate to be a workable hack, but the better solution would be to support re-opening log files. @lunny This is a feature request, not a question. |
@MTecknology I'm also handling log rotation myself, using logrotate. (Must do so, so can feed logs into log management stack.) The gitea container already runs s6, so log rotation would be very easy. With s6 I would typically do:
Which would make s6 send signal But of course gitea doesn't currently support reopening of its log file. Have you found a workaround in the meantime? |
If it's not currently possible, could gitea re-open log files on SIGHUP? If it is possible, could somebody tell me what I'm doing wrong? At the moment, I have logrotate restarting the gitea service.
The text was updated successfully, but these errors were encountered: