[systemd-devel] CREDENTIALS_DIRECTORY vs %d
Greg Oliver
oliver.greg at gmail.com
Mon Aug 12 22:49:15 UTC 2024
On Mon, Aug 12, 2024 at 5:28 PM Gesh <gesh at gesh.uni.cx> wrote:
> systemd.exec(5) reads:
> > In order to reference the path a credential may be read from within a
> > ExecStart= command line use "${CREDENTIALS_DIRECTORY}/mycred", e.g.
> > "ExecStart=cat ${CREDENTIALS_DIRECTORY}/mycred". In order to reference
> the
> > path a credential may be read from within a Environment= line use
> "%d/mycred",
> > e.g. "Environment=MYCREDPATH=%d/mycred".
>
> Is there a reason that the `ExecStart=` line should specifically refer to
> `$CREDENTIALS_DIRECTORY` and not `%d`? Surely these are equivalent?
>
> Thanks,
> Gesh
>
You just quoted your own answer ::
On ExecStart :: "ExecStart=cat ${CREDENTIALS_DIRECTORY}/mycred"
On Environment :: "Environment=MYCREDPATH=%d/mycred"
So, it fully depends on what line you put it on.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20240812/55c16283/attachment.htm>
More information about the systemd-devel
mailing list