On Thu, 03.09.15 17:45, Eliezer Croitoru ([email protected]) wrote: > Hey, > > I am working on a service for squid caching service. > I have a need to define LimitNOFILE from an environmental variable instead > of only the service file.
No this does not work. Environment expansion is only done for ExecStart= and related lines, and the environment is only determined right when the binary is invoked. Generally: configuration for units is supposed to be placed in units, Splitting that into environment files such as /etc/sysconfig/* makes things both more opaque for the admin and harder to process from applications reading unit files. Hence, your usecase is explicitly something we don't recommend. Lennart -- Lennart Poettering, Red Hat _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
