Skip to content

[windows] move service startup to beginning of run function #4971

@leehinman

Description

@leehinman

Currently elastic-agent does several things before it communicates with the Windows Service Manager and registers itself and reports as running.

go service.ProcessWindowsControlEvents(stopBeat)

This can cause problems because the service manager has a very short timeout between when it starts a process and expects that process to communicate that it is in StartPending state. For Windows we need to move this as close as possible to the start of the run function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions