nixpkgs/nixos/modules
Janne Heß 3052d3aa50
nixos/switch-to-configuration: Fix restarting by activation script
This bug is so obscure and unlikely that I was honestly not able to
properly write a test for it. What happens is that we are calling
handleModifiedUnit() with $unitsToStart=\%unitsToRestart. We do this to
make sure that the unit is stopped before it's started again which is
not possible by regular means because the stop phase is already done
when calling the activation script.

recordUnit() still gets $startListFile, however which is the wrong file.
The bug would be triggered if an activation script requests a service
restart for a service that has `stopIfChanged = true` and
switch-to-configuration is killed before the restart phase was run. If
the script is run again, but the activation script is not requesting
more restarts, the unit would be started instead of restarted.
2022-03-11 13:30:03 +01:00
..
config nixos/users: Fix type error 2022-02-05 22:38:56 +01:00
hardware nixos/xone: init 2022-02-20 18:25:12 +13:00
i18n/input-method nixos/documentation: split options doc build 2022-01-02 19:46:13 +01:00
installer nix-fallback-paths.nix: Update to 2.7.0 2022-03-08 22:40:16 +08:00
misc nixos/os-release: generate from attrset 2022-03-04 09:36:40 +08:00
profiles nixos/nix-daemon: use structural settings 2022-01-26 21:04:50 -05:00
programs Merge pull request #163009 from scvalex/nbd-service 2022-03-11 01:02:10 +00:00
security Merge pull request #156858: nixos/polkit: don't enable by default 2022-03-05 14:48:35 +01:00
services Merge pull request #162411 from kurnevsky/tox-node-service-fix 2022-03-11 18:09:35 +08:00
system nixos/switch-to-configuration: Fix restarting by activation script 2022-03-11 13:30:03 +01:00
tasks treewide: remove obsolete kernel version checks 2022-02-19 21:09:19 +00:00
testing nixos/tests: also set TimeoutStart in systemd.user.extraConfig 2022-01-21 04:18:05 +01:00
virtualisation nixos/amazon-image: use 5_10 kernel and add assert 2022-02-27 15:04:37 -08:00
module-list.nix Merge pull request #163009 from scvalex/nbd-service 2022-03-11 01:02:10 +00:00
rename.nix Remove F-PROT package and service module (EoL) (#160372) 2022-03-02 21:51:47 +02:00