From 6ec22de10721eafb99198402e8a5bc612fddf19f Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Fri, 20 Mar 2020 07:44:01 -0400 Subject: [PATCH] Add APIv2 service files Signed-off-by: Lokesh Mandvekar --- podman.spec | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/podman.spec b/podman.spec index 67f408b..ebac957 100644 --- a/podman.spec +++ b/podman.spec @@ -552,6 +552,13 @@ for file in $(find . -iname "*_test.go" | grep -v "vendor") ; do done %endif +#TODO Next release this section should be removed, since the make install will handle it +# install service +install -m 644 contrib/systemd/user/podman.socket %{buildroot}/%{_userunitdir}/podman.socket +install -m 644 contrib/systemd/user/podman.service %{buildroot}/%{_userunitdir}/podman.service +install -m 644 contrib/systemd/system/podman.socket %{buildroot}/%{_unitdir}/podman.socket +install -m 644 contrib/systemd/system/podman.service %{buildroot}/%{_unitdir}/podman.service + %if 0%{?with_devel} sort -u -o devel.file-list devel.file-list %endif @@ -605,6 +612,10 @@ exit 0 %{_userunitdir}/io.%{name}.service %{_userunitdir}/io.%{name}.socket %{_usr}/lib/tmpfiles.d/%{name}.conf +%{_unitdir}/%{name}.service +%{_unitdir}/%{name}.socket +%{_userunitdir}/%{name}.service +%{_userunitdir}/%{name}.socket %files docker %{_bindir}/docker