3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/system/activation
Janne Heß b9bb1de341
nixos/switch-to-configuration: Implement reload support
This is accomplished by comparing the hashes that the unit files
contain. By filtering for a special key `X-Reload-Triggers` in the
`[Unit]` section, we can differentiate between reloads and restarts.

Since activation scripts can request reloads of units as well, more
checking of this behaviour is implemented. If a unit is to be restarted,
it's never reloaded as well which would make no sense.

Also removes a useless subroutine and perl dependencies that are
nowadays handled by the propagated build inputs feature of
`perl.withPackages`.
2022-02-09 14:31:45 +01:00
..
activation-script.nix nixos/activation-script: ensure gcroots dir exists 2022-01-20 20:24:32 +00:00
no-clone.nix
switch-to-configuration.pl nixos/switch-to-configuration: Implement reload support 2022-02-09 14:31:45 +01:00
top-level.nix nixos/switch-to-configuration: Implement reload support 2022-02-09 14:31:45 +01:00