Merge pull request #167692 from peperunas/onsuccess
nixos/systemd: Add onSuccess module option for units
This commit is contained in:
commit
5e7662d848
@ -285,6 +285,8 @@ in rec {
|
|||||||
Documentation = toString config.documentation; }
|
Documentation = toString config.documentation; }
|
||||||
// optionalAttrs (config.onFailure != []) {
|
// optionalAttrs (config.onFailure != []) {
|
||||||
OnFailure = toString config.onFailure; }
|
OnFailure = toString config.onFailure; }
|
||||||
|
// optionalAttrs (config.onSuccess != []) {
|
||||||
|
OnSuccess = toString config.onSuccess; }
|
||||||
// optionalAttrs (options.startLimitIntervalSec.isDefined) {
|
// optionalAttrs (options.startLimitIntervalSec.isDefined) {
|
||||||
StartLimitIntervalSec = toString config.startLimitIntervalSec;
|
StartLimitIntervalSec = toString config.startLimitIntervalSec;
|
||||||
} // optionalAttrs (options.startLimitBurst.isDefined) {
|
} // optionalAttrs (options.startLimitBurst.isDefined) {
|
||||||
|
@ -206,6 +206,15 @@ in rec {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
onSuccess = mkOption {
|
||||||
|
default = [];
|
||||||
|
type = types.listOf unitNameType;
|
||||||
|
description = ''
|
||||||
|
A list of one or more units that are activated when
|
||||||
|
this unit enters the "inactive" state.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
startLimitBurst = mkOption {
|
startLimitBurst = mkOption {
|
||||||
type = types.int;
|
type = types.int;
|
||||||
description = ''
|
description = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user