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; }
|
||||
// optionalAttrs (config.onFailure != []) {
|
||||
OnFailure = toString config.onFailure; }
|
||||
// optionalAttrs (config.onSuccess != []) {
|
||||
OnSuccess = toString config.onSuccess; }
|
||||
// optionalAttrs (options.startLimitIntervalSec.isDefined) {
|
||||
StartLimitIntervalSec = toString config.startLimitIntervalSec;
|
||||
} // 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 {
|
||||
type = types.int;
|
||||
description = ''
|
||||
|
Loading…
Reference in New Issue
Block a user