From 93e4828d8dc8654b78e1350e010ce3dff93c1eda Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Jul 06 2016 17:45:36 +0000 Subject: 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). --- diff --git a/certmonger.spec b/certmonger.spec index 77e8aa9..2f80b26 100644 --- a/certmonger.spec +++ b/certmonger.spec @@ -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 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 - 0.78.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild