Merge pull request #220 from Gigahawk/stop_grace_period
add support for stop_grace_period
This commit is contained in:
commit
172e69d563
1 changed files with 7 additions and 0 deletions
|
@ -297,6 +297,11 @@ in
|
||||||
default = null;
|
default = null;
|
||||||
description = serviceRef "stop_signal";
|
description = serviceRef "stop_signal";
|
||||||
};
|
};
|
||||||
|
service.stop_grace_period = mkOption {
|
||||||
|
type = nullOr str;
|
||||||
|
default = null;
|
||||||
|
description = serviceRef "stop_grace_period";
|
||||||
|
};
|
||||||
service.sysctls = mkOption {
|
service.sysctls = mkOption {
|
||||||
type = attrsOf (either str int);
|
type = attrsOf (either str int);
|
||||||
default = {};
|
default = {};
|
||||||
|
@ -380,6 +385,8 @@ in
|
||||||
inherit (config.service) restart;
|
inherit (config.service) restart;
|
||||||
} // lib.optionalAttrs (config.service.stop_signal != null) {
|
} // lib.optionalAttrs (config.service.stop_signal != null) {
|
||||||
inherit (config.service) stop_signal;
|
inherit (config.service) stop_signal;
|
||||||
|
} // lib.optionalAttrs (config.service.stop_grace_period != null) {
|
||||||
|
inherit (config.service) stop_grace_period;
|
||||||
} // lib.optionalAttrs (config.service.tmpfs != []) {
|
} // lib.optionalAttrs (config.service.tmpfs != []) {
|
||||||
inherit (config.service) tmpfs;
|
inherit (config.service) tmpfs;
|
||||||
} // lib.optionalAttrs (config.service.tty != null) {
|
} // lib.optionalAttrs (config.service.tty != null) {
|
||||||
|
|
Loading…
Reference in a new issue