Allow configuration of systemd service Restart directive
femiagbabiaka opened this issue · 0 comments
🗣️ Foreword
Thank for taking the time to fill this feature request fully. Without it we may not be able to , and the issue may be closed without resolution.
:person_frowning: Problem Statement
There are situations where one would want to allow Elasticsearch to restart on failure, such as OOM's. I'm not sure the current design of the service resource allows for this.
❔ Possible Solution
We could add parameters that allow for conditional configuration of the Restart directives and fall back to the current default to avoid breakage in behavior.
⤴️ Describe alternatives you've considered
I could add another resource in my cookbook that alters the file after it's written here.
If it's possible (I'm not sure how), I could override the systemd service without editing the service here, via some aspect of Chef or Ruby I'm not aware of.
➕ Additional context
None that I know of.