-
Notifications
You must be signed in to change notification settings - Fork 188
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
Updated logrotate frequency to allow for an override #1814
Changes from 7 commits
758e89b
4623ebd
e50f527
25be9f8
025c732
8cbb242
2552650
c94a606
152eb8c
bcc0379
2631ba5
5092d6b
10b1b98
76d30af
1fe3159
6a17308
d1255c0
79f9fd3
1d293fb
09de273
a8f6a7b
c62b6e0
b9053f6
7ba27b0
2873512
cd13a97
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ notifempty | |
|
||
{{#if extrasFiles}} | ||
{{#each extrasFiles}}{{{filename}}} { | ||
{{#if logrotateFrequencyOverride }}{{{logrotateFrequencyOverride}}}{{/if}} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should double check if this will 'just work'. Not all versions of logrotate support There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Additional note, enough OSs likely support hourly logrotate now that we could do away with this extra check if we verify that it still works as intended There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have discussed this at length and determined that it's ok to put the logrotate config files at There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have decided to support older logrotate versions and added code to Singularity to force a rotation hourly using the
|
||
dateformat -{{{ dateformat }}}{{#if extension}}.{{{ extension}}}{{/if}} | ||
missingok | ||
{{#if useFileAttributes}} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious why you removed the optionals from the arguments. Both cases should work for that particular usage but there are a few things to keep in mind: