<p dir="ltr">I asked about something similar to this a while back. I think the answer was that variable expansion only works in the Exec* directives.</p>
<p dir="ltr">Cheers,<br>
Brian</p>
<br><div class="gmail_quote"><div dir="ltr">On Thu, Sep 29, 2016, 03:26 Vasiliy Tolstov <<a href="mailto:v.tolstov@selfip.ru">v.tolstov@selfip.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have CPUAffinity inside service file and want to configure it via<br>
EnvironmentFile, but<br>
CPUAffinity=$CPUAffinity does not work with message Failed to parse<br>
CPU affinity '$CPUAffinity'<br>
Environment file contains CPUAffinity="0-2"<br>
Does it possible to assign cpu affinity via env variable ?<br>
Thanks!<br>
<br>
<br>
--<br>
Vasiliy Tolstov,<br>
e-mail: <a href="mailto:v.tolstov@selfip.ru" target="_blank">v.tolstov@selfip.ru</a><br>
_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org" target="_blank">systemd-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</blockquote></div>