0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

Add an option to reload rather than restart changed units

This commit is contained in:
Eelco Dolstra 2014-03-17 15:02:53 +01:00
parent 28b7d67d08
commit 511b86d22d
3 changed files with 20 additions and 2 deletions

View file

@ -243,6 +243,17 @@ in rec {
'';
};
reloadIfChanged = mkOption {
type = types.bool;
default = false;
description = ''
Whether the service should be reloaded during a NixOS
configuration switch if its definition has changed. If
enabled, the value of <option>restartIfChanged</option> is
ignored.
'';
};
stopIfChanged = mkOption {
type = types.bool;
default = true;