Andrew Spiers (and...@andrewspiers.net) wrote: > I think EnvironmentFile is just used for setting the environment file > of the running process. > Setting ARGS in /etc/default/prometheus seems to add the value to the > command line arguments, as well as to an environment variable called > ARGS for the prometheus process. > I can't find any mention of this in the systemd or prometheus docs, > but it works.
Show us the systemd unit file, or a URL that points to it exactly as it appears on your system. (Hint: if it's a Debian package, and if you're using the unmodified Debian systemd unit file, you might be able to find it on sources.debian.org. If this is the case, tell us what version of the Debian package you're using. For example, buster's is at <https://sources.debian.org/src/prometheus/2.7.1+ds-3/debian/service/>.) It might also help if you try "systemctl status prometheus" (or whatever the unit's name is) and show us what it says. Just in case the systemd unit is merely a thin wrapper around a sysv-rc script, as is sometimes the case. It's worth noting that the Debian /etc/default/prometheus file from buster's package (<https://sources.debian.org/src/prometheus/2.7.1+ds-3/debian/default/>) explicitly sets a variable named ARGS.