summaryrefslogtreecommitdiff
path: root/contrib/varlink
diff options
context:
space:
mode:
authorMatej Marusak <mmarusak@redhat.com>2019-07-25 12:39:26 +0200
committerMatej Marusak <mmarusak@redhat.com>2019-08-13 07:00:56 +0200
commitdaf7044aa9c3e91e6b574e2de5fcddd4811fccdd (patch)
tree90af422f3d0a4e73118dc07274cae12678303569 /contrib/varlink
parent9bee6907a5d867ab866374c6c7d8a45e3fa705da (diff)
downloadpodman-daf7044aa9c3e91e6b574e2de5fcddd4811fccdd.tar.gz
podman-daf7044aa9c3e91e6b574e2de5fcddd4811fccdd.tar.bz2
podman-daf7044aa9c3e91e6b574e2de5fcddd4811fccdd.zip
Add user systemd service and socket
This enables user to interact with varlink and create/manage rootless containers through it. Using as: `varlink call unix:/run/user/1000/podman/io.podman/io.podman.ListContainers` Signed-off-by: Matej Marusak <mmarusak@redhat.com>
Diffstat (limited to 'contrib/varlink')
-rw-r--r--contrib/varlink/io.podman.service3
-rw-r--r--contrib/varlink/io.podman.socket2
2 files changed, 3 insertions, 2 deletions
diff --git a/contrib/varlink/io.podman.service b/contrib/varlink/io.podman.service
index c524ce815..725198e79 100644
--- a/contrib/varlink/io.podman.service
+++ b/contrib/varlink/io.podman.service
@@ -6,7 +6,8 @@ Documentation=man:podman-varlink(1)
[Service]
Type=simple
-ExecStart=/usr/bin/podman varlink unix:/run/podman/io.podman
+ExecStart=/usr/bin/podman varlink unix:%t/podman/io.podman
+KillMode=none
[Install]
WantedBy=multi-user.target
diff --git a/contrib/varlink/io.podman.socket b/contrib/varlink/io.podman.socket
index 0f09fe3ef..f6a3ddc49 100644
--- a/contrib/varlink/io.podman.socket
+++ b/contrib/varlink/io.podman.socket
@@ -3,7 +3,7 @@ Description=Podman Remote API Socket
Documentation=man:podman-varlink(1)
[Socket]
-ListenStream=/run/podman/io.podman
+ListenStream=%t/podman/io.podman
SocketMode=0600
[Install]