Skip to content

Allow enabling services declaratively #935

@JustSoup312

Description

@JustSoup312

Currently, the way that OpenRC services are enabled by default in postmarketOS is by running a post-install on packages that runs rc-update add ____ for each service to be enabled. This works for system services, but user services do not work with this model as they are expected to be run by the user, which doesn't work when running a package manager as root.

An idea to get around this and to make pre-enabling services simpler is to create a declarative way to enable services. The idea is to use something similar to systemd presets or perhaps similar to how runit enables services (symlinking them to a folder that enables them). I would be partial to the systemd preset style as it would logically separate what packages enable which service.

The idea would be that OpenRC would read from a file to determine which services to start, then check if the user manually disabled any of the services and only start the services listed in the file, then start the imperatively started services.

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