mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
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 <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
716bf31e0b
commit
03aaa55d73
@@ -136,11 +136,7 @@ do_install() {
|
|||||||
|
|
||||||
pkg_postinst_avahi-daemon () {
|
pkg_postinst_avahi-daemon () {
|
||||||
if [ -z "$D" ]; then
|
if [ -z "$D" ]; then
|
||||||
DBUSPID=`pidof dbus-daemon`
|
killall -q -HUP dbus-daemon || true
|
||||||
|
|
||||||
if [ "x$DBUSPID" != "x" ]; then
|
|
||||||
/etc/init.d/dbus-1 force-reload
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user