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

Allow specifying multiple paths and postrotate commands for a logrotate entry #15

Open
tazend opened this issue Jun 27, 2023 · 0 comments · May be fixed by #16
Open

Allow specifying multiple paths and postrotate commands for a logrotate entry #15

tazend opened this issue Jun 27, 2023 · 0 comments · May be fixed by #16

Comments

@tazend
Copy link

tazend commented Jun 27, 2023

Proposed feature

It should be possible to specify a list for the path and postrotate variable in a logrotate entry, instead of just a single string.

Rationale

It is perfectly fine in logrotate to give multiple postrotate commands and paths to files that should be rotated, especially when one wants to simply apply the same ruleset on multiple paths.

Since it is currently only possible to specify a single path in a logrotate entry, you would need to duplicate the same entry over and over where just the logfile changes to achieve this same behaviour, which seems unnecessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant