[lug] Environment variable expansion in systemd service files

Brennen Bearnes bbearnes at gmail.com
Mon Feb 27 09:46:37 MST 2017


On Sun, Feb 26, 2017 at 8:15 PM, Chris Riddoch <riddochc at gmail.com> wrote:

> I've been trying to figure out how to accomplish something in systemd
> service configuration files, I hope maybe someone else has tried to do
> something similar before and recognizes this.
>

I suspect that you may need to do something like described here:

https://coreos.com/os/docs/latest/using-environment-variables-in-systemd-units.html

...and define a separate unit file to dynamically create something you can
feed to EnvironmentFile.

This seems silly, so hopefully someone will tell me I'm wrong.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20170227/4f98ec8c/attachment.html>


More information about the LUG mailing list