Skip to content

add systemd Type=notify support #585

Open
@AndySchroder

Description

@AndySchroder

Is your feature request related to a problem? Please describe.
litd doesn't do systemd notify like lnd does (https://github.com/lightningnetwork/lnd/blob/86e7b4e1e02e29117dcebba319b0da98e66a3365/contrib/init/lnd.service#L22) so we don't know when litd is ready to use. With Type=notify, systemctl start litd.service just hangs.

Describe the solution you'd like
Be able to use Type=notify in systemd service files.

While you are adding this, it would be good to add an example systemd service file so that people know the best way to launch litd.

Describe alternatives you've considered
Type=simple works, but we don't have consistency with lnd and we don't know when litd is fully up and running for dependent services to use.

Additional context
Would like systemd service files for all lightning labs products to be nearly identical.

I think lnd is implementing this here: https://github.com/lightningnetwork/lnd/blob/86e7b4e1e02e29117dcebba319b0da98e66a3365/signal/signal.go#L25 .

See also, https://manpages.debian.org/bookworm/systemd/systemd.service.5.en.html#OPTIONS .

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions