From 4c04ebd2b7db7715f1c4f972fa011d8b82becf4b6cd48691e47c23bafdc7c4dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= Date: Sun, 8 Feb 2015 09:27:10 +0000 Subject: [PATCH] add .socket to pre/post OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:cockpit/cockpit?expand=0&rev=10 --- cockpit.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cockpit.spec b/cockpit.spec index 54d22b7..8bc6b3c 100644 --- a/cockpit.spec +++ b/cockpit.spec @@ -297,14 +297,14 @@ mv %{buildroot}%{_datadir}/doc/%{name} %{buildroot}%{_docdir}/%{name}/html %pre ws %if 0%{?suse_version} -%service_add_pre %{name}.service +%service_add_pre %{name}.service %{name}.socket %endif getent group cockpit-ws >/dev/null || groupadd -r cockpit-ws getent passwd cockpit-ws >/dev/null || useradd -r -g cockpit-ws -d / -s /sbin/nologin -c "User for cockpit-ws" cockpit-ws %post ws %if 0%{?suse_version} -%service_add_post %{name}.service +%service_add_post %{name}.service %{name}.socket %else %systemd_post cockpit.socket %endif @@ -313,14 +313,14 @@ test -f %{_bindir}/firewall-cmd && firewall-cmd --reload --quiet || true %preun ws %if 0%{?suse_version} -%service_del_preun %{name}.service +%service_del_preun %{name}.service %{name}.socket %else %systemd_preun cockpit.socket %endif %postun ws %if 0%{?suse_version} -%service_del_postun %{name}.service +%service_del_postun %{name}.service %{name}.socket %else %systemd_postun_with_restart cockpit.socket %endif