environment file

A file of name=value lines that a systemd service loads into its process environment with EnvironmentFile=.

In more detail

It keeps application settings apart from the unit that supervises the process, so you can change one without editing the other. Protect it with file permissions if it contains anything sensitive, because environment variables leak easily into logs and child processes.

Related terms

Taught in

References