diff options
author | Matej Marusak <mmarusak@redhat.com> | 2019-07-25 12:39:26 +0200 |
---|---|---|
committer | Matej Marusak <mmarusak@redhat.com> | 2019-08-13 07:00:56 +0200 |
commit | daf7044aa9c3e91e6b574e2de5fcddd4811fccdd (patch) | |
tree | 90af422f3d0a4e73118dc07274cae12678303569 /contrib/spec | |
parent | 9bee6907a5d867ab866374c6c7d8a45e3fa705da (diff) | |
download | podman-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/spec')
-rw-r--r-- | contrib/spec/podman.spec.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/spec/podman.spec.in b/contrib/spec/podman.spec.in index 0de797f2b..35f3b2014 100644 --- a/contrib/spec/podman.spec.in +++ b/contrib/spec/podman.spec.in @@ -389,6 +389,7 @@ popd %install install -dp %{buildroot}%{_unitdir} +install -dp %{buildroot}%{_usr}/lib/systemd/user PODMAN_VERSION=%{version} %{__make} PREFIX=%{buildroot}%{_prefix} ETCDIR=%{buildroot}%{_sysconfdir} \ install.bin \ install.remote \ @@ -487,6 +488,8 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath} %{_datadir}/containers/%{repo}.conf %{_unitdir}/io.podman.service %{_unitdir}/io.podman.socket +%{_usr}/lib/systemd/user/io.podman.service +%{_usr}/lib/systemd/user/io.podman.socket %{_usr}/lib/tmpfiles.d/%{name}.conf %if 0%{?with_devel} |