could automatically detect and clean up a stale pid file, if distro init scripts don't
Submitted by Brian J. Murrell
Assigned to D-Bus Maintainers
Description
If the dbus daemon (or the machine) dies unexpectedly it leaves an orphaned "pidfile" (in /var/run/messagebus.pid on RH based Linux). When one tries to restart the dbus-daemon it fails to start with:
Failed to start message bus: The pid file "/var/run/messagebus.pid" exists, if the message bus is not running, remove this file
And continues to do so until the file is removed by some external force.
Is this by design? Is there some philosophical objection to having dbus-daemon detect that the file is orphaned and remove and then start?
Version: 1.5