+32
-4
nixos/modules/system/activation/switch-to-configuration.pl
+32
-4
nixos/modules/system/activation/switch-to-configuration.pl
············print STDERR "would restart the following units: ", join(", ", sort(keys %unitsToRestart)), "\n"···print STDERR "would reload the following units: ", join(", ", sort(keys %unitsToReload)), "\n"······print STDERR "reloading the following units: ", join(", ", sort(keys %unitsToReload)), "\n";system("@systemd@/bin/systemctl", "reload", "--", sort(keys %unitsToReload)) == 0 or $res = 4;···print STDERR "restarting the following units: ", join(", ", sort(keys %unitsToRestart)), "\n";system("@systemd@/bin/systemctl", "restart", "--", sort(keys %unitsToRestart)) == 0 or $res = 4;
+1
nixos/tests/all-tests.nix
+1
nixos/tests/all-tests.nix
···
+73
nixos/tests/restart-by-activation-script.nix
+73
nixos/tests/restart-by-activation-script.nix
···