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:
parent
07d25c2dcf
commit
93e4828d8d
@ -26,7 +26,7 @@
|
||||
|
||||
Name: certmonger
|
||||
Version: 0.78.6
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: Certificate status monitor and PKI enrollment client
|
||||
|
||||
Group: System Environment/Daemons
|
||||
@ -78,6 +78,7 @@ BuildRequires: /usr/include/popt.h
|
||||
|
||||
# we need a running system bus
|
||||
Requires: dbus
|
||||
Requires(post): %{_bindir}/dbus-send
|
||||
|
||||
%if %{systemd}
|
||||
BuildRequires: systemd-units
|
||||
@ -151,7 +152,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post
|
||||
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
|
||||
%if %{systemd}
|
||||
if test $1 -eq 1 ; then
|
||||
@ -242,6 +243,11 @@ exit 0
|
||||
%endif
|
||||
|
||||
%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
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user