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 support for agent self-restarting #54

Open
Tracked by #22887
vikman90 opened this issue Jul 25, 2024 · 0 comments · May be fixed by #386
Open
Tracked by #22887

Add support for agent self-restarting #54

vikman90 opened this issue Jul 25, 2024 · 0 comments · May be fixed by #386
Assignees
Labels

Comments

@vikman90
Copy link
Member

vikman90 commented Jul 25, 2024

Parent issue:

Description

We need to develop a Minimum Viable Product (MVP) that enables the Wazuh agent to support a command for self-restart.

Functional requirements

  • The agent should accept a command to initiate a restart.
  • The agent should perform a clean restart, ensuring all processes are correctly shut down and restarted.
  • Log the restart event, including the timestamp and initiating command details.

Non-functional requirements

  • The restart process should not exceed a predefined time limit (e.g., 30 seconds) to minimize downtime.

Implementation restrictions

  • Start from the Spike issue: Agent command manager #4
  • Ensure that the implementation is thoroughly tested with unit tests and integration tests.

Plan

  1. Add support for agent self-restarting: Design Phase #63
    • Outline the design and workflow for the restart command.
  2. Add support for agent self-restarting: Development Phase #77
    • Implement the command to initiate a restart.
    • Add logging for restart events.
  3. Testing Phase:
    • Develop and execute unit tests for the new functionality.
    • Perform integration tests to ensure the command works across different environments.
@wazuhci wazuhci moved this to Blocked in Release 5.0.0 Aug 5, 2024
@lchico lchico self-assigned this Aug 5, 2024
@wazuhci wazuhci moved this from Blocked to In progress in Release 5.0.0 Aug 5, 2024
@wazuhci wazuhci moved this from In progress to On hold in Release 5.0.0 Aug 16, 2024
@wazuhci wazuhci moved this from On hold to Blocked in Release 5.0.0 Aug 19, 2024
@wazuhci wazuhci removed this from Release 5.0.0 Sep 24, 2024
@lchico lchico linked a pull request Dec 4, 2024 that will close this issue
28 tasks
@wazuhci wazuhci moved this to In progress in Release 5.0.0 Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In progress
Development

Successfully merging a pull request may close this issue.

2 participants