Skip to content

Support for systemd socket activation #569

@atheriel

Description

@atheriel

On Linux systems it seems sensible to run the daemon as a systemd user service for local reviews, but right now there is an awkward choice between starting the service at login (which is almost certainly too early) or making it completely manual.

I'd suggest adding support for systemd socket activation in the daemon so that it can be configured to start up automatically when there is review work to do. I believe there is fairly good support in the Go ecosystem for detecting when the right systemd-related environment variables are set and converting the passed file descriptor to something you can Listen() on already.

I'm not sure you'd even need a new flag; it would make sense to me that socket activation takes precedence over --server and --addr when detected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions