Skip to content

Feature: sd_notify API support for systemd #7507

@philpennock

Description

@philpennock

Proposed change

Detect on start-up if the environment variable NOTIFY_SOCKET is set and, if so, automatically trigger writing some status information to the Unix socket which is specified in that env var.

In particular, READY=1\n when start-up is complete, as the most critical piece of information. Various status information such as "JS enabled" and auto-detected limits might make sense too.

Use case

Improved reliability of start-up management, both from systemd and from anything else trying to start a NATS server and wait for it to be ready before continuing.

Contribution

Sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalEnhancement idea or proposal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions