diff options
| author | Janne Heß <janne@hess.ooo> | 2022-03-06 19:38:51 +0100 |
|---|---|---|
| committer | Janne Heß <janne@hess.ooo> | 2022-03-11 13:30:03 +0100 |
| commit | 3052d3aa50674f2cfeee7c7ddf42c36d84013e48 (patch) | |
| tree | 51da9c4afed7903e4ade35bf568fd64e68a53f66 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch | |
| parent | c96180c53fcd4f36a7163c3e59a2e6bcd9233f06 (diff) | |
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.
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions
