[systemd-devel] assign variable to some service item

Brian Kroth bpkroth at gmail.com
Thu Sep 29 12:36:07 UTC 2016


I asked about something similar to this a while back. I think the answer
was that variable expansion only works in the Exec* directives.

Cheers,
Brian

On Thu, Sep 29, 2016, 03:26 Vasiliy Tolstov <v.tolstov at selfip.ru> wrote:

> I have CPUAffinity inside service file and want to configure it via
> EnvironmentFile, but
> CPUAffinity=$CPUAffinity does not work with message Failed to parse
> CPU affinity '$CPUAffinity'
> Environment file contains CPUAffinity="0-2"
> Does it possible to assign cpu affinity via env variable ?
> Thanks!
>
>
> --
> Vasiliy Tolstov,
> e-mail: v.tolstov at selfip.ru
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20160929/6f8b7817/attachment.html>


More information about the systemd-devel mailing list