Use dbus-send instead of SIGHUP to reload the bus

Instead of using killall to send a SIGHUP to the system bus daemon in
%post to get it to reload its configuration, use dbus-send to send a
ReloadConfig request over the bus (should fix #1277573).
This commit is contained in:
Nalin Dahyabhai 2016-07-06 13:45:36 -04:00
parent 07d25c2dcf
commit 93e4828d8d

View File

@ -26,7 +26,7 @@
Name: certmonger Name: certmonger
Version: 0.78.6 Version: 0.78.6
Release: 2%{?dist} Release: 3%{?dist}
Summary: Certificate status monitor and PKI enrollment client Summary: Certificate status monitor and PKI enrollment client
Group: System Environment/Daemons Group: System Environment/Daemons
@ -78,6 +78,7 @@ BuildRequires: /usr/include/popt.h
# we need a running system bus # we need a running system bus
Requires: dbus Requires: dbus
Requires(post): %{_bindir}/dbus-send
%if %{systemd} %if %{systemd}
BuildRequires: systemd-units BuildRequires: systemd-units
@ -151,7 +152,7 @@ rm -rf $RPM_BUILD_ROOT
%post %post
if test $1 -eq 1 ; then if test $1 -eq 1 ; then
killall -HUP dbus-daemon 2>&1 > /dev/null %{_bindir}/dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig 2>&1 || :
fi fi
%if %{systemd} %if %{systemd}
if test $1 -eq 1 ; then if test $1 -eq 1 ; then
@ -242,6 +243,11 @@ exit 0
%endif %endif
%changelog %changelog
* Wed Jul 6 2016 Nalin Dahyabhai <nalin@redhat.com> 0.78.6-3
- instead of using killall to send a SIGHUP to the system bus daemon in %%post
to get it to reload its configuration, use dbus-send to send a ReloadConfig
request over the bus (should fix #1277573)
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.78.6-2 * Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.78.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild