Add an option for BindsTo dependencies

This commit is contained in:
Eelco Dolstra 2012-10-10 16:50:41 -04:00
parent 6b185a131f
commit 17a7f48364
2 changed files with 10 additions and 0 deletions

View File

@ -47,6 +47,15 @@ rec {
'';
};
bindsTo = mkOption {
default = [];
types = types.listOf types.string;
description = ''
Like requires, but in addition, if the specified units
unexpectedly disappear, this unit will be stopped as well.
'';
};
partOf = mkOption {
default = [];
types = types.listOf types.string;

View File

@ -174,6 +174,7 @@ let
Wants = concatStringsSep " " config.wants;
After = concatStringsSep " " config.after;
Before = concatStringsSep " " config.before;
BindsTo = concatStringsSep " " config.bindsTo;
PartOf = concatStringsSep " " config.partOf;
} // optionalAttrs (config.description != "") {
Description = config.description;