[oe-commits] Ross Burton : avahi: don't call DBus init script directly
git at git.openembedded.org
git at git.openembedded.org
Tue Apr 16 15:48:45 UTC 2013
Module: openembedded-core.git
Branch: master
Commit: b3e468294a0723b3ceafe2022bf9d735eee64678
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=b3e468294a0723b3ceafe2022bf9d735eee64678
Author: Ross Burton <ross.burton at intel.com>
Date: Tue Apr 16 15:25:03 2013 +0100
avahi: don't call DBus init script directly
After installing Avahi we need DBus to reload it's configuration. In a
pure-systemd image there isn't a DBus init script to reload, so cut out the
middleman and just sent SIGHUP to all running dbus-daemon processes instead.
Signed-off-by: Ross Burton <ross.burton at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/recipes-connectivity/avahi/avahi.inc | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/meta/recipes-connectivity/avahi/avahi.inc b/meta/recipes-connectivity/avahi/avahi.inc
index d8d9a9d..c302f87 100644
--- a/meta/recipes-connectivity/avahi/avahi.inc
+++ b/meta/recipes-connectivity/avahi/avahi.inc
@@ -136,11 +136,7 @@ do_install() {
pkg_postinst_avahi-daemon () {
if [ -z "$D" ]; then
- DBUSPID=`pidof dbus-daemon`
-
- if [ "x$DBUSPID" != "x" ]; then
- /etc/init.d/dbus-1 force-reload
- fi
+ killall -q -HUP dbus-daemon || true
fi
}
More information about the Openembedded-commits
mailing list