-
Notifications
You must be signed in to change notification settings - Fork 22
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
Fixes #8340: logrotate promise for CFEngine Enterprise agents #936
Fixes #8340: logrotate promise for CFEngine Enterprise agents #936
Conversation
@@ -1552,6 +1552,14 @@ body file_select size_range(from,to) | |||
|
|||
## | |||
|
|||
body file_select size_range(from,to) |
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.
This looks like a duplicate of the lines above
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.
indeed ...
2e09c54
to
d9f4cee
Compare
Commit modified |
"${log_files_to_rotate}" | ||
comment => "Rotate file if above specified size", | ||
rename => rotate("10"), | ||
file_select => bigger_than("1M"); |
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.
Won't this fail / complain in the files are missing?
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.
not at all.
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.
/var/rudder/cfengine-community//bin/cf-agent -KIb garbage_collection
2016-05-20T12:35:37+0200 info: Using command line specified bundlesequence
2016-05-20T12:35:37+0200 info: /default/garbage_collection/files/'/var/rudder/cfengine-community/outputs'[0]: Deleted file '/var/rudder/cfengine-community/outputs/cf_orchestrateur_1_labo_normation_com__1463135408_Fri_May_13_12_30_08_2016_0x7fcb3ef97700'
2016-05-20T12:35:47+0200 info: /default/garbage_collection/files/'/var/rudder/cfengine-community/promise_summary.log'[1]: Rotating files '/var/rudder/cfengine-community/promise_summary.log' in 10 fifo
https://www.rudder-project.org/redmine/issues/8340