-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Portable and persistent systemd units #9948
Comments
Thanks for opening the issue and apologies for the long silence, we've been super busy.
That would not work. I am open to add a new template to |
A friendly reminder that this issue had no activity for 30 days. |
@vrothberg Where do we stand on this one? |
No progress since we're in bug-scrubbing mode. But I am also not yet convinced about the idea. The underlying assumption would be that One thing, I do want to tackle now is enforcing the journald logger in the units. |
I am going to close this issue. @rhatdan is currently working on making journald the the default log-driver. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
I have some services which perform some expensive initial setup and for some this setup shouldn't even be run unattended. Because of that, I can't use the
podman systemd generate --new
units, as I don't want to create new containers on each restart. OTOH thepodman systemd generate
services are not portable: I can't really use them on coreos, as the initial setup does not have any containers initialized. I came up with these unit template for myself, which I hope doesn't have any hidden issues:Here if "test-fedora" does not exists, a new container is created. Otherwise the
create
command fails (and is ignored) and the unit callsstart
anyway. Maybe it'd make sense to include a stop/kill before the create, just to be safe?BTW: I think
--log-driver journald
should really be included in all systemd units.The text was updated successfully, but these errors were encountered: