avahi: don't call DBus init script directly
authorRoss Burton <ross.burton@intel.com>
Tue, 16 Apr 2013 14:25:03 +0000 (15:25 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 16 Apr 2013 15:51:41 +0000 (16:51 +0100)
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.

(From OE-Core rev: b3e468294a0723b3ceafe2022bf9d735eee64678)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/avahi/avahi.inc

index d8d9a9d..c302f87 100644 (file)
@@ -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
 }