[systemd-devel] Restarting dbus service makes system unstable

Andrei Borzenkov arvidjaar at gmail.com
Fri Mar 8 07:22:50 UTC 2024


On 08.03.2024 09:49, Shreenidhi Shedi wrote:
> Hi All,
> 
> I tried this on Fedora 39 so anyone can reproduce this at their end I guess.
> 

Restarting D-Bus was never safe and never supported. Every individual 
application would need to support D-Bus connection loss and be able to 
transparently reconnect. I do not know if D-Bus daemon keeps any 
internal state that would need restoring as well.

> Steps:
> 1. systemctl restart dbus
> 2. Try to start a new ssh session or invoke a reboot command
> 
> It will take 25 seconds to finish and if we restart systemd-logind, system
> becomes stable. busctl --list shows logind as activatable.
> 
> Is this a known issue? I tried the same on a systemd with systemd v247.13
> and it doesn't happen there.
> 
> With systemd v253.12 and in v254.9 (fedora's) this is reproducible 100%.
> 



More information about the systemd-devel mailing list