Skip to content

Support logrotate - #174

Merged
rlahfa-dinum merged 4 commits into
backend-unifyfrom
logrotate
Aug 14, 2026
Merged

Support logrotate#174
rlahfa-dinum merged 4 commits into
backend-unifyfrom
logrotate

Conversation

@rlahfa-dinum

Copy link
Copy Markdown
Collaborator

logrotate is very useful to avoid having tons of logs on your system without compression + rotation across time.
It required one little architectural change inside of Portail, the ability to synchronize all logging to a new file handle once logrotate moves it which happens when logrotate mv a file then kill -SIGHUP $(pidof portail).

Fixes #115.


Stack created with GitHub Stacks CLIGive Feedback 💬

This is an Arc type to enable SIGHUP to reopen the files atomically in
all threads.

Signed-off-by: Ryan Lahfa <ryan.lahfa.ext@numerique.gouv.fr>
Signed-off-by: Ryan Lahfa <ryan.lahfa.ext@numerique.gouv.fr>
Signed-off-by: Ryan Lahfa <ryan.lahfa.ext@numerique.gouv.fr>
Signed-off-by: Ryan Lahfa <ryan.lahfa.ext@numerique.gouv.fr>
@rlahfa-dinum
rlahfa-dinum merged commit 54c9f30 into main Aug 14, 2026
28 checks passed
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.

Provide logrotate integration and automation

2 participants