git.iko.soy/typeable/nixpkgs
on master help sign in
nixos-rebuild: use reload-or-restart for dbus. Closes #5767

Now that dbus reload has been moved before restarting units, the reload may fail if dbus has been stopped before. The reload-or-restart will reload dbus if it's active, otherwise start it.

commit2beb43174f6c92862534868e8959f2800c41ce1e authorLuca Bruno <lethalman88@gmail.com> dateWed 14 Jan 2015, 16:02 (12 years ago) parentc2f8791
1 file changed+1−1
nixos/modules/system/activation/switch-to-configuration.pl+1−1
nixos/modules/system/activation/switch-to-configuration.pl+1−1
@@ -323,7 +323,7 @@ system("@systemd@/bin/systemctl", "daemon-reload") == 0 or $res = 3;
323323
324324# Signal dbus to reload its configuration before starting other units.
325325# Other units may rely on newly installed policy files under /etc/dbus-1
326−system("@systemd@/bin/systemctl", "reload", "dbus.service");
326+system("@systemd@/bin/systemctl", "reload-or-restart", "dbus.service");
327327
328328# Restart changed services (those that have to be restarted rather
329329# than stopped and started).