From faf5939307cafe262ee2135621e1d3e173087e06 Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Mon, 2 Oct 2017 10:44:59 -0400 Subject: packaging: manual systemctl daemon reload required after install Use the %systemd_{post,preun,postun_with_restart} macros provided I tried both install and update from 3.10.x and did not receive any warnings about needing daemon reload Reported-by: Sam McLeod Change-Id: Ibb33a748fc4226864019765b59d1a154b7297bae BUG: 1495384 Signed-off-by: Kaleb S. KEITHLEY --- glusterfs.spec.in | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'glusterfs.spec.in') diff --git a/glusterfs.spec.in b/glusterfs.spec.in index ac9c8d94637..8cea677bfaf 100644 --- a/glusterfs.spec.in +++ b/glusterfs.spec.in @@ -111,12 +111,12 @@ %endif %if ( 0%{?_with_systemd:1} ) -%global _init_enable() /bin/systemctl enable %1.service ; -%global _init_disable() /bin/systemctl disable %1.service ; -%global _init_restart() /bin/systemctl try-restart %1.service ; -%global _init_start() /bin/systemctl start %1.service ; -%global _init_stop() /bin/systemctl stop %1.service ; -%global _init_install() install -D -p -m 0644 %1 %{buildroot}%{_unitdir}/%2.service ; +%global _init_enable() %systemd_post %1.service +%global _init_disable() %systemd_preun %1.service +%global _init_restart() %systemd_postun_with_restart %1.service +%global _init_start() /bin/systemctl start %1.service +%global _init_stop() /bin/systemctl stop %1.service +%global _init_install() install -D -p -m 0644 %1 %{buildroot}%{_unitdir}/%2.service # can't seem to make a generic macro that works %global _init_glusterd %{_unitdir}/glusterd.service %global _init_glusterfsd %{_unitdir}/glusterfsd.service -- cgit