diff options
author | Ross Burton <ross.burton@intel.com> | 2013-04-16 15:25:03 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-04-16 16:48:33 +0100 |
commit | b3e468294a0723b3ceafe2022bf9d735eee64678 (patch) | |
tree | 641a959c123807d2380cf79757814de3201c77cf /meta/recipes-connectivity/avahi | |
parent | f45a03b510479f6c27b24a0fd8d0c661674495e1 (diff) | |
download | openembedded-core-b3e468294a0723b3ceafe2022bf9d735eee64678.tar.gz openembedded-core-b3e468294a0723b3ceafe2022bf9d735eee64678.tar.bz2 openembedded-core-b3e468294a0723b3ceafe2022bf9d735eee64678.zip |
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@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/avahi')
-rw-r--r-- | 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 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 } |