Skip to content

Conversation

@nemchik
Copy link
Member

@nemchik nemchik commented May 5, 2025

Refs:
https://eff-certbot.readthedocs.io/en/stable/using.html#log-rotation
https://eff-certbot.readthedocs.io/en/stable/using.html#certbot-command-line-options
https://github.com/certbot/certbot/blob/62361dac442c065005455a0c78ea066fedc6c5f8/certbot/src/certbot/_internal/log.py#L172

Certbot's new log rotate functionality performs a rotation on every run of the certbot command. Our init runs the command at least one time (up to 4 times depending on conditional logic), and then cron runs daily. I investigated using their built-in log rotate, but it is less ideal to keep logs over time if a container is frequently restarted or updated because this reduces the time period for logs that would be kept by certbot's built in log rotation.

@LinuxServer-CI
Copy link
Contributor

I am a bot, here is the pushed image/manifest for this PR:

ghcr.io/linuxserver/lspipepr-swag:4.0.0-pkg-128c0a95-dev-b87c9d2886427458eead3862f92241a4d88a9d7f-pr-564

@nemchik nemchik requested a review from a team May 5, 2025 21:04
@LinuxServer-CI LinuxServer-CI moved this from PRs to PRs Ready For Team Review in Issue & PR Tracker May 5, 2025
@github-project-automation github-project-automation bot moved this from PRs Ready For Team Review to PRs Approved in Issue & PR Tracker May 8, 2025
@nemchik nemchik merged commit a01e4ac into master May 8, 2025
7 checks passed
@nemchik nemchik deleted the max-log-backups branch May 8, 2025 21:03
@LinuxServer-CI LinuxServer-CI moved this from PRs Approved to Done in Issue & PR Tracker May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants