summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-09-09 15:24:52 +0200
committerGitHub <noreply@github.com>2024-09-09 15:24:52 +0200
commitb9076dd2e06215659d6a2e3c9e542703dbe79ea3 (patch)
treea32a186bcc23fb599029de6ba6890fbabf6a7513 /src
parentbfc75f9da7388063227c3338c486017301e20a87 (diff)
parentf67e217f2716937115a3bdf6d316b172bbec75e5 (diff)
downloadvyos-1x-b9076dd2e06215659d6a2e3c9e542703dbe79ea3.tar.gz
vyos-1x-b9076dd2e06215659d6a2e3c9e542703dbe79ea3.zip
Merge pull request #4034 from c-po/podman-api
container: T6702: re-add missing UNIX API socket
Diffstat (limited to 'src')
-rw-r--r--src/systemd/podman.service16
-rw-r--r--src/systemd/podman.socket10
2 files changed, 26 insertions, 0 deletions
diff --git a/src/systemd/podman.service b/src/systemd/podman.service
new file mode 100644
index 000000000..20a16304b
--- /dev/null
+++ b/src/systemd/podman.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Podman API Service
+Requires=podman.socket
+After=podman.socket
+Documentation=man:podman-system-service(1)
+StartLimitIntervalSec=0
+
+[Service]
+Delegate=true
+Type=exec
+KillMode=process
+Environment=LOGGING="--log-level=info"
+ExecStart=/usr/bin/podman $LOGGING system service
+
+[Install]
+WantedBy=default.target
diff --git a/src/systemd/podman.socket b/src/systemd/podman.socket
new file mode 100644
index 000000000..397058ee4
--- /dev/null
+++ b/src/systemd/podman.socket
@@ -0,0 +1,10 @@
+[Unit]
+Description=Podman API Socket
+Documentation=man:podman-system-service(1)
+
+[Socket]
+ListenStream=%t/podman/podman.sock
+SocketMode=0660
+
+[Install]
+WantedBy=sockets.target