Giter Site home page Giter Site logo

Comments (6)

panpan0000 avatar panpan0000 commented on July 20, 2024

I just download podman-4.3.1-1.1.x86_64.rpm or podman-4.2.1-150500.1.2.x86_64.rpm

, there's already /usr/lib/systemd/system/podman-restart.service in the package.

So it seems 4.2.1 already include podman-restart, but I didn't find it in our static repo. maybe just add this service will help ?

from podman-static.

mgoltzsche avatar mgoltzsche commented on July 20, 2024

@panpan0000 so as I understand you want the podman-restart systemd service to be redistributed by this repository.

Currently this does not make sense to me because the container image and binaries shipped by this repository explicitly don't support systemd and are built primarily to run on systems without systemd.
Also, it looks like restarting a podman container is the caller's responsibility, not the responsibility of podman itself. (This makes sense since podman is not designed as a daemon like containerd/dockerd.)
If you want to make podman containers restart on boot, you have to run those additonal commands somehow on boot or, if you're using systemd as init system, simply download the podman-restart.service template.

Regarding the update: podman 4.4.0 is not stable yet but the latest stable podman update 4.3.1 should also be shipped by this repo indeed.

from podman-static.

mgoltzsche avatar mgoltzsche commented on July 20, 2024

I am closing this issue now. In case you have strong argument for redistributing the systemd unit with the tar within this repo, please feel free to reopen the issue.

from podman-static.

panpan0000 avatar panpan0000 commented on July 20, 2024

got you @mgoltzsche . Thank you for your response !

from podman-static.

mgoltzsche avatar mgoltzsche commented on July 20, 2024

I see now it would be convenient for users to have the systemd unit shipped with the tar archive. After all it does not increase the archive's size significantly and users could still decide whether or not they want to enable it.
(Also, I noticed podman supports the podman generate systemd command now.)
Feel free to create a pull request. Otherwise I might be able to add it to the next release myself.

from podman-static.

mgoltzsche avatar mgoltzsche commented on July 20, 2024

Release v4.4.4 provides /usr/lib/systemd/system/podman-restart.service with the tar archive (f82c88f and c909610).

from podman-static.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.