Skip to content

Conversation

@gonzolino
Copy link
Contributor

Container services can be started and stopped using the system start and system stop commands. But there is no straightforward way for users to check if the services were already started.

This PR adds a new system status command that shows wether the container services are running or not.

The command only checks the status of the apiserver for now, but it could be expanded in the future to show more details.

Fixes #117.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider changing this wording to

Suggested change
print("apiserver is not running")
print("apiserver is not registered with launchd")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestion! It is definitely more precise than my wording.

Updated it to "apiserver is not running and not registered with launchd", as I think end users might not know what "registered with launchd" means.

@katiewasnothere
Copy link
Contributor

Thanks for the change! :)

Copy link
Contributor

@adityaramani adityaramani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Just had a couple minor comments

Container services can be started and stopped using the `system start`
and `system stop` commands. But there is no straightforward way for
users to check if the services were already started.

This commit adds a new `system status` command that shows wether the
container services are running or not.

The command only checks the status of the apiserver for now, but it
could be expanded in the future to show more details.
@katiewasnothere katiewasnothere merged commit 20b6325 into apple:main Jun 10, 2025
2 checks passed
@gonzolino gonzolino deleted the system-status branch June 10, 2025 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add command to check system status

3 participants