这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Scollector running as a service on Windows doesn't log panics #1867

@gbrayut

Description

@gbrayut

It appears that when Scollector is running as a service on Windows it doesn't log panics anywhere. We probably should find a way to send them to the event log or file system.

Currently the only event that occurs is:

Log: System
Source: Service Control Manager
Event ID: 7031
The scollector service terminated unexpectedly. It has done this 1 time(s). The following corrective action will be taken in 60000 milliseconds: Restart the service.

Also restarting the service automatically is not enabled by default (that is configured by DSC in our environment), so that last sentence probably won't appear in other environments unless they configure the service recover actions:

image

It would be nice to get those recovery actions added in the service_windows.go installation method.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions