Replies: 6 comments
|
I have a systemd user service file for starting an init distrobox container. Perhaps it's applicable for your use as well. Create file Replace Verify config: Enable and start it: |
I thought there's a better solution instead of sleep. |
That's a great idea! 🤗 I have no idea how to reconcile the distrobox service file in the user service manager to depend on the startup of services from the system manager. 🤔 EDIT 1: I ended up moving the distrobox startup to the system service manager: |
|
I use a I use I put |
|
Converting to discussion for future reference 👍 |
|
Just saying if you use this tool: https://github.com/ericcurtin/podman-ollama it's: |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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
-Iflag.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.servicebut 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/
All reactions