Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Provide stop and status Commands #3

Merged
merged 3 commits into from
Nov 29, 2023

Conversation

jacderida
Copy link
Contributor

  • 82bc33d feat: provide stop command

    A fairly simple command that will stop a running service.

    Sometimes you can encounter difficulty when trying to stop a service gracefully, but I decided to
    only attempt to stop the service once and leave any retries to the service infrastructure.

  • 55d1ad9 feat: provide status command

    The command provides both a summary and a detailed view of installed services.

    It checks to see whether the service process is still running, because it's possible the process
    could have died since the last time we checked.

    The data and log directories were added to the InstalledNode struct so that we could keep track of
    these and display them in the detailed status view since it seems like useful information to have.

  • edcec75 test: extend the e2e test for new commands

    With stop and status commands, we can have a more elaborate test that exercises all the
    important functionality in the node manager.

    Using the status reported by the application allows us to make the test cross platform.

A fairly simple command that will stop a running service.

Sometimes you can encounter difficulty when trying to stop a service gracefully, but I decided to
only attempt to stop the service once and leave any retries to the service infrastructure.
The command provides both a summary and a detailed view of installed services.

It checks to see whether the service process is still running, because it's possible the process
could have died since the last time we checked.

The data and log directories were added to the `InstalledNode` struct so that we could keep track of
these and display them in the detailed status view since it seems like useful information to have.
With `stop` and `status` commands, we can have a more elaborate test that exercises all the
important functionality in the node manager.

Using the status reported by the application allows us to make the test cross platform.
@jacderida jacderida merged commit 678c75d into maidsafe:main Nov 29, 2023
13 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants