diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-04-01 16:28:18 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-04-01 16:57:16 +0200 |
commit | 1c39a47ac87959b2589ef797e519af96d73c27d6 (patch) | |
tree | 1c1b5f74e678fd7406f110615f0ed615d9f4566d /nixos/modules/services/system/dbus.nix | |
parent | b3e1021b41b710240bfdacd7c4603acf2029237d (diff) | |
download | nixpkgs-1c39a47ac87959b2589ef797e519af96d73c27d6.tar nixpkgs-1c39a47ac87959b2589ef797e519af96d73c27d6.tar.gz nixpkgs-1c39a47ac87959b2589ef797e519af96d73c27d6.tar.bz2 nixpkgs-1c39a47ac87959b2589ef797e519af96d73c27d6.tar.lz nixpkgs-1c39a47ac87959b2589ef797e519af96d73c27d6.tar.xz nixpkgs-1c39a47ac87959b2589ef797e519af96d73c27d6.tar.zst nixpkgs-1c39a47ac87959b2589ef797e519af96d73c27d6.zip |
Reload, don't restart, dbus.service
Many bus clients get hopelessly confused when dbus-daemon is restarted. So let's not do that. Of course, this is not ideal either, because we end up stuck with a possibly outdated dbus-daemon. But that issue will become irrelevant in the glorious kdbus-based future. Hopefully this also gets rid of systemd getting stuck after dbus-daemon is restarted: Apr 01 15:37:50 mandark systemd[1]: Failed to register match for Disconnected message: Connection timed out Apr 01 15:37:50 mandark systemd[1]: Looping too fast. Throttling execution a little. Apr 01 15:37:51 mandark systemd[1]: Looping too fast. Throttling execution a little. ...
Diffstat (limited to 'nixos/modules/services/system/dbus.nix')
-rw-r--r-- | nixos/modules/services/system/dbus.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/services/system/dbus.nix b/nixos/modules/services/system/dbus.nix index 928f16c9448..d40f7d6d05d 100644 --- a/nixos/modules/services/system/dbus.nix +++ b/nixos/modules/services/system/dbus.nix @@ -130,6 +130,9 @@ in config.system.path ]; + # Don't restart dbus-daemon. Bad things tend to happen if we do. + systemd.services.dbus.reloadIfChanged = true; + environment.pathsToLink = [ "/etc/dbus-1" "/share/dbus-1" ]; }; |