diff options
author | Kaleb S. KEITHLEY <kkeithle@redhat.com> | 2017-10-02 10:44:59 -0400 |
---|---|---|
committer | Kaleb S. KEITHLEY <kkeithle@redhat.com> | 2017-10-02 10:50:30 -0400 |
commit | faf5939307cafe262ee2135621e1d3e173087e06 (patch) | |
tree | 5b25f80274ba89b1573c0db6e423b09d1bbffd5e /glusterfs.spec.in | |
parent | 1e2d6537875d16b783e3c50ada7ee61487c6d796 (diff) |
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 <rhbugs@auto.smcleod.net>
Change-Id: Ibb33a748fc4226864019765b59d1a154b7297bae
BUG: 1495384
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r-- | glusterfs.spec.in | 12 |
1 files changed, 6 insertions, 6 deletions
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 |