Skip to content

consul service: Use Type=notify #49706

Open

Description

@nh2

Extracted from #49165 (comment):

  • Set Type=notify on the systemd unit. Apparently this is supported.

When running under systemd on Linux, Consul notifies systemd by sending READY=1 to the $NOTIFY_SOCKET when a LAN join has completed. For this either the join or retry_join option has to be set and the service definition file has to have Type=notify set.
https://www.consul.io/docs/agent/basics.html#running-an-agent

This will improve detection on when consul is actually up.

CC @arianvp

Activity

  1. added
    0.kind: enhancement
    on Nov 3, 2018
  2. stale commented on Jun 3, 2020

    @stale

    Thank you for your contributions.

    This has been automatically marked as stale because it has had no activity for 180 days.

    If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

    Here are suggestions that might help resolve this more quickly:

    1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
    2. Ask on the NixOS Discourse.
    3. Ask on the #nixos channel on irc.freenode.net.
  3. added
    2.status: stale
    on Jun 3, 2020
  4. added
    6.topic: nixos
    on Oct 1, 2025
  5. qweered commented on Oct 1, 2025

    @qweered
    Contributor

    triaged, still relevant

  6. removed
    2.status: stale
    on Oct 1, 2025
  7. added
    2.status: stale
    on Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: enhancement2.status: stale6.topic: nixos

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions