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.
This commit is contained in:
parent
c2f8791e83
commit
2beb43174f
@ -323,7 +323,7 @@ system("@systemd@/bin/systemctl", "daemon-reload") == 0 or $res = 3;
|
|||||||
|
|
||||||
# Signal dbus to reload its configuration before starting other units.
|
# Signal dbus to reload its configuration before starting other units.
|
||||||
# Other units may rely on newly installed policy files under /etc/dbus-1
|
# Other units may rely on newly installed policy files under /etc/dbus-1
|
||||||
system("@systemd@/bin/systemctl", "reload", "dbus.service");
|
system("@systemd@/bin/systemctl", "reload-or-restart", "dbus.service");
|
||||||
|
|
||||||
# Restart changed services (those that have to be restarted rather
|
# Restart changed services (those that have to be restarted rather
|
||||||
# than stopped and started).
|
# than stopped and started).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user