feat(daemon): allows daemonization options to be fetched from app settings#8553
Conversation
auvipy
left a comment
There was a problem hiding this comment.
thanks for the PR. can you check the CI failures please?
efc6a15 to
22f28a4
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8553 +/- ##
==========================================
- Coverage 87.45% 87.36% -0.10%
==========================================
Files 148 148
Lines 18499 18525 +26
Branches 3158 3165 +7
==========================================
+ Hits 16179 16184 +5
- Misses 2032 2056 +24
+ Partials 288 285 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
There it is, PR fixed, Ci is all green 👍🏼 |
865aaab to
639f8a4
Compare
639f8a4 to
dc774f6
Compare
|
What extra benefits the changes will provide? |
|
Today, the only way to provide those values are from cli flag which prevent retrieving those values from any registry (unless you have a way to fetch those values before running those daemons and passing the processed result to the cli, which is not possible in my case). |
|
yeah that looks nice. I am in favor of it. Lets us wait for other maintainers to look into it. I would appreciate if in the mean time you could review this PR #8489 |
Co-authored-by: Omer Katz <omer.katz@kcg.tech>
Co-authored-by: Omer Katz <omer.katz@kcg.tech>
Co-authored-by: Omer Katz <omer.katz@kcg.tech>
Co-authored-by: Omer Katz <omer.katz@kcg.tech>
Co-authored-by: Omer Katz <omer.katz@kcg.tech>
Co-authored-by: Omer Katz <omer.katz@kcg.tech>
Co-authored-by: Omer Katz <omer.katz@kcg.tech>
Co-authored-by: Omer Katz <omer.katz@kcg.tech>
Co-authored-by: Omer Katz <omer.katz@kcg.tech>
Co-authored-by: Omer Katz <omer.katz@kcg.tech>
Co-authored-by: Omer Katz <omer.katz@kcg.tech>
@noirbizarre thank you for this PR! |
|
@noirbizarre the version doc is important for understanding changes on a release and IIRC that's the only gap on this PR. As we want to improve our communication on releases, I'd appreciate it if you could please close the small gap so we can merge it in, these are nice changes overall and the finishing line is very near! 😉 |
|
Hi 👋🏼 |
Amazing! Thank you! |
|
There it is ! Version added markers for 5.4 added on all settings 👍🏼 Thanks for the review and the merge 🙏🏼 |
Thank you!! It's important to keep consistency (see other places) so I hope it's not too annoying to ask for this last fix please @noirbizarre 🙏 |
auvipy
left a comment
There was a problem hiding this comment.
looks good. just the remaining review issues need to be addressed
Fixed my own comment here: #8802 @noirbizarre all good ❤️ |

Description
This pull-requests allows to provide daemonization settings (
--logfile,--pidfile,--uid,--gid,--umaskand--executable) from your config file with the following new settings:beat_logfilebeat_pidfilebeat_uidbeat_gidbeat_umaskbeat_executableworker_logfileworker_pidfileworker_uidworker_gidworker_umaskworker_executableevents_logfileevents_pidfileevents_uidevents_gidevents_umaskevents_executableThis PR is backward compatible, tested and documented. Missing CLI documentation for daemonization settings have been added in the process.