Skip to content

Clarify comments on ConditionEnvironment placement

Clarify the comments on ConditionEnvironment= by mentioning that a ConditionEnvironment= line must be located in the [Unit] section.

The comments suggesting using ConditionEnvironment= themselves are in the [Service] section, which implicitly and wrongly suggests
that ConditionEnvironment= could be defined right there as well.

This is to prevent people from making such implicit assumptions on the placement of ConditionEnvironment=.

Thanks to @bberg for correcting my mistaken assumptions.

Merge request reports