10 Aug 2012 21:00
[PATCH] dbus: Fix pid file in dbus init script
The PIDFILE (/var/run/dbus/pid) referenced by /etc/init.d/dbus-1 did not match the path (/var/run/messagebus.pid) configured in /etc/dbus-1/system.conf, so the initscript could start the daemon, but not stop it. Also remove needless directory ownership logic (dbus-daemon drops its pid file as root before calling setuid). Signed-off-by: Andy Ross <andy.ross@...> --- meta/recipes-core/dbus/dbus-1.4.20/dbus-1.init | 11 +++-------- meta/recipes-core/dbus/dbus-1.5.12/dbus-1.init | 11 +++-------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/meta/recipes-core/dbus/dbus-1.4.20/dbus-1.init b/meta/recipes-core/dbus/dbus-1.4.20/dbus-1.init index 4abc4cb..17b58ed 100644 --- a/meta/recipes-core/dbus/dbus-1.4.20/dbus-1.init +++ b/meta/recipes-core/dbus/dbus-1.4.20/dbus-1.init <at> <at> -18,9 +18,8 <at> <at> set -e DAEMON=/usr/bin/dbus-daemon NAME=dbus -DAEMONUSER=messagebus -PIDDIR=/var/run/dbus -PIDFILE=$PIDDIR/pid +DAEMONUSER=messagebus # must match /etc/dbus-1/system.conf +PIDFILE=/var/run/messagebus.pid # must match /etc/dbus-1/system.conf UUIDDIR=/var/lib/dbus DESC="system message bus" EVENTDIR=/etc/dbus-1/event.d <at> <at> -38,11 +37,7 <at> <at> test "$ENABLED" != "0" || exit 0(Continue reading)
RSS Feed