Skip to content
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

podman.service and podman.socket support #99

Open
koh-osug opened this issue Aug 15, 2024 · 1 comment
Open

podman.service and podman.socket support #99

koh-osug opened this issue Aug 15, 2024 · 1 comment

Comments

@koh-osug
Copy link
Contributor

I'm using the podman Go API which is using sockets to communicate with podman.

Would it by OK to add the podman.socket file as /usr/lib/systemd/user/podman.socket:

[Unit]
Description=Podman API Socket
Documentation=man:podman-system-service(1)

[Socket]
ListenStream=%t/podman/podman.sock
SocketMode=0660

[Install]
WantedBy=sockets.target

And this in /usr/lib/systemd/user/podman.service:

[Unit]
Description=Podman API Service
Requires=podman.socket
After=podman.socket
Documentation=man:podman-system-service(1)
StartLimitIntervalSec=0

[Service]
Type=exec
KillMode=process
Environment=LOGGING="--log-level=info"
ExecStart=/usr/local/bin/podman $LOGGING system service

[Install]
WantedBy=default.target
@mgoltzsche
Copy link
Owner

Okay, now that the podman-restart.service is already there, let's have the other ones as well for convenience. Please feel free to create a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants