From ef7538fec5d243238012be368faad92471f26f0a Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 22 Jul 2014 11:54:20 +0200 Subject: [PATCH] Run the systemd scriptlets with cockpit.socket Since we're socket activated it needs to be cockpit.socket that's referred to in the cockpit scriptlets rhbz#1110764 --- cockpit.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cockpit.spec b/cockpit.spec index 8e9ef49..1410e18 100644 --- a/cockpit.spec +++ b/cockpit.spec @@ -1,6 +1,6 @@ Name: cockpit Version: 0.16 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A user interface for Linux servers License: LGPLv2+ @@ -126,18 +126,21 @@ getent group cockpit-storage-admin >/dev/null || groupadd -r cockpit-storage-adm getent passwd cockpit-ws >/dev/null || useradd -r -g cockpit-ws -d / -s /sbin/nologin -c "User for cockpit-ws" cockpit-ws %post -%systemd_post cockpit.service +%systemd_post cockpit.socket # firewalld only partially picks up changes to its services files without this test -f %{_bindir}/firewall-cmd && firewall-cmd --reload --quiet || true %preun -%systemd_preun cockpit.service +%systemd_preun cockpit.socket %postun -%systemd_postun_with_restart cockpit.service +%systemd_postun_with_restart cockpit.socket %changelog +* Tue Jul 22 2014 Stef Walter 0.16-2 +- Refer to cockpit.socket in scriptlets rhbz#1110764 + * Thu Jul 17 2014 Stef Walter 0.16-1 - Update to 0.16 release