Skip to content

Allow configuration of systemd service Restart directive #786

@femiagbabiaka

Description

@femiagbabiaka

🗣️ 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.

Metadata

Metadata

Assignees

Labels

Feature RequestEnhancement to existing functionality or new functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions