Skip to content

[Documentation] How to create a service file to run at boot, in the init distrobox. #1042

@Aman9das

Description

@Aman9das

Is your feature request related to a problem? Please describe.
I want to install ollama.ai in a systemd container, but for some reason the service doesn't start when entering the distrobox. The container was created with the -I flag.

Describe the solution you'd like
An addition to the documentation near the init containers documentation, about how to make sure a service runs at container bootup.

Describe alternatives you've considered
I've tried to specify the container is After=default.service but it doesn't run on boot :(

Additional context
https://www.freedesktop.org/software/systemd/man/latest/systemd.special.html
https://www.howtogeek.com/687970/how-to-run-a-linux-program-at-startup-with-systemd/

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions