dbus does not start again if not cleanly shutdown before

Bug #508832 reported by Stefan Fleiter on 2010-01-17
This bug affects 4 people
Affects Status Importance Assigned to Milestone
dbus (Ubuntu)

Bug Description

Binary package hint: dbus

if /var/run/dbus/pid exists, f.e. after dbus crashed,
it won't get started again until the pid file is manually removed.

The first bug ist that upstart does not recognize that dbus is not running
Is this a bug in upstart or in dbus.conf?

The pid file should be removed if dbus is not running any more,
so dbus can be started again.
That is the second bug.

ProblemType: Bug
Architecture: amd64
Date: Sun Jan 17 19:04:10 2010
DistroRelease: Ubuntu 10.04
NonfreeKernelModules: nvidia
Package: dbus 1.2.16-2ubuntu2
 PATH=(custom, user)
ProcVersionSignature: Ubuntu 2.6.32-10.14-generic
SourcePackage: dbus
Tags: lucid
Uname: Linux 2.6.32-10-generic x86_64

Stefan Fleiter (stefan-fleiter) wrote :
Daniel Hahler (blueyed) wrote :

As far as I can see, upstart should have restarted dbus (there's "respawn" in the config).

Regarding the pid file, this cannot get removed if there's an unexpected crash.
Why wasn't dbus not starting before the file had been removed?

Well, "stop dbus" does not appear to stop dbus completely (the pid is gone, but 3 dbus-daemon processes still running).

I can confirm though, that with a file /var/run/dbus/pid in place (even if empty), dbus won't properly startup again, after having pkill'ed dbus-daemon, using "start dbus".
Removing the pid file made it start better, but the system is still borked, e.g. dbus-monitor cannot connect - that's another issue though probably (and maybe cannot get fixed at all).

Changed in dbus (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers