From 6f02de25fb9c1be946175216e449e2e6e95e46b7 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 16 Apr 2013 15:25:03 +0100 Subject: 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. (From OE-Core rev: b3e468294a0723b3ceafe2022bf9d735eee64678) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/recipes-connectivity/avahi/avahi.inc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'meta') diff --git a/meta/recipes-connectivity/avahi/avahi.inc b/meta/recipes-connectivity/avahi/avahi.inc index d8d9a9df87..c302f87979 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 } -- cgit v1.2.3-54-g00ecf