<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:monospace">On Mon, Aug 12, 2024 at 5:28 PM Gesh <<a href="mailto:gesh@gesh.uni.cx">gesh@gesh.uni.cx</a>> wrote:<br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">systemd.exec(5) reads:<br>
> In order to reference the path a credential may be read from within a<br>
> ExecStart= command line use "${CREDENTIALS_DIRECTORY}/mycred", e.g.<br>
> <span class="gmail_default" style="font-family:monospace"></span>"ExecStart=cat ${CREDENTIALS_DIRECTORY}/mycred". In order to reference the<br>
> path a credential may be read from within a Environment= line use "%d/mycred",<br>
> e.g. <span class="gmail_default" style="font-family:monospace"></span> "Environment=MYCREDPATH=%d/mycred".<br>
<br>
Is there a reason that the `ExecStart=` line should specifically refer to<br>
`$CREDENTIALS_DIRECTORY` and not `%d`? Surely these are equivalent?<br>
<br>
Thanks,<br>
Gesh<br></blockquote><div><br></div><div class="gmail_default" style="font-family:monospace">You just quoted your own answer ::</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">On ExecStart :: "ExecStart=cat ${CREDENTIALS_DIRECTORY}/mycred"</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">On Environment :: "Environment=MYCREDPATH=%d/mycred"</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">So, it fully depends on what line you put it on.</div><div class="gmail_default" style="font-family:monospace"><br></div></div></div>