Skip to content
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

Add new hooks for more complete service lifecycle control #5318

Closed
christophermaier opened this issue Jul 12, 2018 · 4 comments
Closed

Add new hooks for more complete service lifecycle control #5318

christophermaier opened this issue Jul 12, 2018 · 4 comments
Labels
Epic Focus:Supervisor ProcessManagement Related to how the Supervisor manages service processes Focus:Supervisor Related to the Habitat Supervisor (core/hab-sup) component Stale Type: Feature Issues that describe a new desired feature
Milestone

Comments

@christophermaier
Copy link
Contributor

christophermaier commented Jul 12, 2018

In order to run effectively, services may need more control over their lifecycle than Habitat currently provides.

By using new hooks that run at additional control points, we can provide users with Habitat packages that are better tuned to the specific needs of their services.

Some concrete examples are provided in the linked issues, but further research and community engagement should be done to determine the final suite of hooks to add.

@christophermaier christophermaier added this to the 1.0 Supervisor milestone Jul 12, 2018
@christophermaier christophermaier self-assigned this Sep 21, 2018
@jsirex jsirex mentioned this issue Dec 6, 2018
@christophermaier christophermaier changed the title Updates to Service Lifecycle and Hooks Add new hooks for more complete service lifecycle control Dec 10, 2018
@christophermaier christophermaier added A-supervisor Focus:Supervisor ProcessManagement Related to how the Supervisor manages service processes labels Dec 10, 2018
@themightychris
Copy link
Contributor

themightychris commented Dec 14, 2018

I was just asking about something like this in Slack. Are you talking about defining a bunch upfront or letting users add their own arbitrary service hooks?

I'm picturing something like hab pkg exec but instead hab svc exec that takes a service identifier and runs a rendered hook of your own with proper environment

The trick though is how do you prevent user hook names from conflicting with future habitat hooks and keep people from Frankensteining with the standard hooks? They'd go really nicely just sitting in the hooks folder along the others but the core team can't be worried about adding new hooks blowing custom stuff up

@stale
Copy link

stale bot commented Apr 2, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you.

@stale stale bot added the Stale label Apr 2, 2020
@christophermaier christophermaier added Focus:Supervisor Related to the Habitat Supervisor (core/hab-sup) component Type: Feature Issues that describe a new desired feature and removed A-supervisor labels Jul 24, 2020
@christophermaier christophermaier removed their assignment Jan 11, 2021
@stale
Copy link

stale bot commented Oct 1, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you.

@stale stale bot added the Stale label Oct 1, 2022
@stale
Copy link

stale bot commented May 21, 2023

This issue has been automatically closed after being stale for 400 days. We still value your input and contribution. Please re-open the issue if desired and leave a comment with details.

@stale stale bot closed this as completed May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Epic Focus:Supervisor ProcessManagement Related to how the Supervisor manages service processes Focus:Supervisor Related to the Habitat Supervisor (core/hab-sup) component Stale Type: Feature Issues that describe a new desired feature
Projects
None yet
Development

No branches or pull requests

3 participants