Re: Template unit : specifier validity

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Do, 16.01.25 11:31, Thomas HUMMEL (thomas.hummel@xxxxxxxxxx) wrote:

> Hello,
>
> Is the %i (or %I) specifier supposed to be valid for a template service unit
> for the Require= and After= directives ?
> It does not seem so in my tests
>
> Documentation states:
> "you may use the special "%i" specifier in many of the configuration
> options" but don't seem to detail which one exactly.
>
> It also states:
> "The following specifiers are interpreted in the Install section: %a, %b,
> %B, %g, %G, %H, %i, %j, %l, %m, %n, %N, %o, %p, %u, %U, %v, %w, %W, %%"
>
> But I think some are valid in (some) directives of the [Unit] or [Service]
> section.
>
> My use case would be to express a dynamic activation and order dependency on
> a device name known only at boot time.

Please provide a minimal example of a unit file you think should work
but doesn't.

Lennart

--
Lennart Poettering, Berlin



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux