-
Notifications
You must be signed in to change notification settings - Fork 316
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
Feature Request: synchronous flag for hab svc <start/stop>
#2680
Comments
I think this could also be useful when doing package development inside the studio. I <3 the the supervisor is already running and I can startup a background (database) process to bind to, but would be nice to do |
We keep finding more and more reasons we need synchronous start/stop/restart in orchestration and scripting tools - it's even proving difficult to judge when a service is up or down using |
Yeah this is an excellent idea :) we're most definitely going to want a first class cli experience for this kind of thing. |
Upon further thought, we think it actually makes more sense for 'synchronous' mode to be the default, and async to be a flag. |
...aaaand just ran into this again today. Just confirms again that having |
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. |
This would still be a big win for CI flows. |
I'm constantly copy-pasting code from my health check hooks into sleep loops in CI flows, we need an easy command that leverages supervisor plumbing for start-service-and-wait-for-health |
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. |
Inspiration for this feature comes from a flag used by
svcadm
on Illumos and Solaris distros,-s
, which tells the service state change to be synchronous:Such a flag for
hab svc <start/stop>
would be extremely useful for things like Test Kitchen integration tests, orchestration with tools like Chef, Ansible, etc, and operator intervention.The text was updated successfully, but these errors were encountered: