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:
|
Beta Was this translation helpful? Give feedback.
-
I thought there's a better solution instead of sleep. |
Beta Was this translation helpful? Give feedback.
-
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:
|
Beta Was this translation helpful? Give feedback.
-
I use a
I use I put |
Beta Was this translation helpful? Give feedback.
-
Converting to discussion for future reference 👍 |
Beta Was this translation helpful? Give feedback.
-
Just saying if you use this tool: https://github.com/ericcurtin/podman-ollama it's:
|
Beta Was this translation helpful? Give feedback.
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
-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/
Beta Was this translation helpful? Give feedback.
All reactions