[systemd-devel] Accpetance of Environment Variables in Attributes

Ede Wolf listac at nebelschwaden.de
Fri Jun 26 07:39:22 UTC 2020


> I do this today using a drop-in, because environment variables can be
> set there as well. It works very well, exactly as you describe. There
> is a template service unit file, and a drop-in directory for each
> instance which contains a file that sets the environment variables and
> also provides values for keys in the [Unit] and [Service] sections.

Would you mind to explain, what is the benefit of this approach compared 
to having a dedicated unit file for each service?
  Thanks


More information about the systemd-devel mailing list