habitat-sh / habitat

Modern applications with built-in automation
https://www.habitat.sh
Apache License 2.0
2.58k stars 316 forks source link

Add command to list service settings when supervisor is not running #5272

Open baumanj opened 6 years ago

baumanj commented 6 years ago

Before launching a supervisor, there is sometimes a desire to know what services it would automatically load and what their desired states are. Currently that information exists in the form of files stored in the supervisor directory, but there is no interface to access (or modify) it without launching the supervisor. Something like hab svc list may be appropriate. Perhaps there should be a hab svc edit or hab svc config as well.

See also https://github.com/habitat-sh/habitat/issues/5032

christophermaier commented 6 years ago

I feel a little weird about modifying the files without going through the Supervisor.

Another option is being able to bring up a Supervisor in a mode that doesn't start any services.

I'd also like to collect more usecase details on this to better prioritize and scope things.

baumanj commented 6 years ago

One thing that would stand in the way of a "bring up a Supervisor in a mode that doesn't start any services" mode is that a supervisor won't start if it can't bind the proper port, so this wouldn't be effective if there were other supervisors running.

One alternative that would allow us to share the code is being able to start a short-lived supervisor that stays offline, but maybe that's too confusing.

Or perhaps with the proper abstractions, reading and modifying these files can happen in a module that both the supervisor and a simpler hab svc list command both leverage.

But first things first: do our users need/want this?

stale[bot] commented 4 years ago

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[bot] commented 1 year ago

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[bot] commented 9 months ago

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.